USWDS Storybook
This module integrates USWDS components with the Storybook module, allowing developers of U.S. Government websites to visualize and manage their front-end components within a development workflow. It provides the necessary Drupal Single-Directory Components and Storybook files to achieve this integration.
This module exposes USWDS components as Drupal Single-Directory Components and supplies Stories twig files for integration with the Storybook module.
Target Audience
This module’s target audience is developers of U.S. Government websites who want to integrate Storybook into their front-end development workflow.
Post-Installation
In your custom theme, you will want to declare uswds_storybook/normalize and uswds_storybook/base under the libraries key in your info file.
Recommended modules/libraries
This module does not depend on the Storybook module, but it is highly recommended.
Why is this a module and not a base theme?
Making this a module allows us to leverage module-specific functionality such as defining elements, field formatters, and custom Twig filters.