Storybook and Chromatic - CDCgov/prime-simplereport GitHub Wiki
Storybook
Storybook is an open source tool for developing UI components in isolation for React. It makes building UIs organized and efficient.
To view the Storybook locally:
- Run
yarn storybook
in thefrontend/
dir - Visit http://localhost:6006
Chromatic
Chromatic is a web-based tool for Storybook that helps speed UI component development. It provides regression testing and review. It also allows for publication of the Storybook.
Changes to the Storybook are sent to Chromatic when changes to the frontend source are push to a
any branch. The changes are automatically accepted on merge to main
.
View the SimpleReport Storybook