This module provides a set of Paragraphs components designed to work with the USWDS framework. It offers various components like accordions, alerts, cards, and layout grids to enhance content creation and presentation.
This suite of Paragraphs bundles works within the USWDS framework.
Note about branches
2.4.x = will be for USWDS 2.x ONLY
3.0.x = USWDS 3.x
3.1.x = D10 ONLY, dropping the settings form since it never worked.
Bundle Types:
Starting 2.4.x I moved the bundles into submodules so site builders can pick bundles.
- USWDS Accordion
- Submodule: USWDS Paragraph Components Accordions
- USWDS Alert
- Submodule: USWDS Paragraph Components Alerts
- Cards
- USWDS Card Group (Flag)
- USWDS Card Group (Regular)
- Submodule: USWDS Paragraph Components Cards, USWDS Paragraph Components Breakpoints
- USWDS Layout Grid
- Submodule: USWDS Paragraph Components Columns, USWDS Paragraph Components Breakpoints
- USWDS Modal
- Submodule: USWDS Paragraph Components Modal
- USWDS Process List
- Submodule: USWDS Paragraph Components Process List
- USWDS Step Indicator
- Submodule: USWDS Paragraph Components Step Indicator
- USWDS Summary Box
- Submodule: USWDS Paragraph Components Summary Box
Requirements
This module requires the following modules outside of Drupal core:
- Entity Reference Revisions
- Paragraphs
- Views Reference Field
- USWDS framework's CSS and JS included in your theme. https://designsystem.digital.gov/
Recommended Modules/Themes
- USWDS - United States Web Design System Base
- USWDS - Ckeditor Integration
- USWDS - Bootstrap Layout Builder Configuration
Installation
- Install as you would normally install a contributed Drupal module. Visit: https://www.drupal.org/node/1897420 for further information
- Verify installation by visiting /admin/structure/paragraphs_type and seeing your new USWDS Paragraph bundles.
Configuration
- Go to your content type and add a new field of type Entity revisions, Paragraphs.
- Allow unlimited so creators can add more than one Paragraph to each node.
- On the field edit screen, you can add instructions, and choose which bundles you want to allow for this field.
- Don't select the following as they are used by other bundles.
- USWDS Cards (Flag)
- USWDS Cards (Regular)
- USWDS Accordion Section
- USWDS Process Item
- USWDS Step Indicator Item
2.2.0 - This will be the last release where I update the forms for existing components. If any changes are made I will note but won't do an update hook as I don't want to override anything