dashboard/stories
Neil MacDougall 389b337048 Fix Storybook build 2021-11-24 10:57:09 +00:00
..
components Fix lint issues 2021-11-04 14:29:29 +00:00
BadgeState.stories.js Fix lint issues 2021-11-04 14:29:29 +00:00
Banner.stories.js Fix lint issues 2021-11-04 14:29:29 +00:00
Buttons.stories.mdx Initial storybook support 2021-11-04 14:29:29 +00:00
FormExample.stories.mdx Initial storybook support 2021-11-04 14:29:29 +00:00
Icons.stories.mdx Initial storybook support 2021-11-04 14:29:29 +00:00
ProviderImages.stories.mdx Initial storybook support 2021-11-04 14:29:29 +00:00
README.md Address PR feedback 2021-11-04 14:30:10 +00:00
Welcome.stories.mdx Initial storybook support 2021-11-04 14:29:29 +00:00
global.scss Fix Storybook build 2021-11-24 10:57:09 +00:00
provider-icons.json Initial storybook support 2021-11-04 14:29:29 +00:00

README.md

Storybook

By default the Storybook dependencies are not included in the main package file (it adds a lot of weight to the install process).

If you run any of the targets:

  • yarn storybook
  • yarn build-storybook

the dependencies will be added to the package.json file and updated automactically.

You can manually install them with the target:

  • yarn install-storybook

Important: Do not commit an updated package.json file withe the Storybook dependencies

You can remove the Storybook dependencies with:

  • yarn remove-storybook

Running Storybook

Just run the command:

yarn storybook

You can access Storybook at the URL: http://127.0.0.1:6006

Next Steps

  • Port design-system pages to Storybook
  • Add Typography page (for headers etc and padding and margin classes)
  • Write short developer reference for how to document components and write stories
  • Build out stories for components
  • Auto-build via CI and publish to Github pages ?
  • Add some content to the Welcome page
  • Get i18n working
  • Get store working (where required by a component)

Useful documentation links: