Turn on storybook addons

Description

The storybooks (make storybook-frontend and make storybook-editor) will become far more useful as style guides when they can include notes and code. They can also act as markup test with storyshots.

We should turn on storybook addons for at least:

  • notes

  • show story code on story

  • storyshots (jest snapshot testing)

but also any others that are easy to turn on and look useful.

Activity

Show:
David Mason
August 4, 2017, 7:27 AM

The 'knobs' addon lets me add a set of controlled values to a story, and the 'info' addon displays the JSX code for the story.

There's a happy interaction here: builder stories!

For example, I can make a button-builder story where you can tweak all the relevant properties to get the button you want:

then open the info view and copy the code straight to where you want the button:

Ready for Release

Assignee

David Mason

Reporter

David Mason

Labels

None

Tested Version/s

None

Story Points

1

Components

Sprint

None

Fix versions

Priority

unspecified