-
Notifications
You must be signed in to change notification settings - Fork 219
Update Storybook deps, switch to new Storybook api/format, consider using args
in Storybook stories
#3028
Comments
args
in Storybook storiesargs
in Storybook stories
Might split this into two separate issues – update vs adopt |
Tried updating all storybook deps to latest, storybook build fails – I think this means we need
https://storybook.js.org/docs/react/get-started/setup#configure-storybook-for-your-stack |
args
in Storybook storiesargs
in Storybook stories
Because renovate is configured to pin versions and it appears when pinning, it will only update patch releases within that range. I don't think renovate should be configured to pin |
There is a migration guide: https://medium.com/storybookjs/storybook-6-migration-guide-200346241bb5 We should follow that. Being stuck on 5 will probably become painful fast .. |
Gutenberg core are still on 5.0, I asked if they are planning to upgrade here: WordPress/gutenberg#17973 |
FYI @nerrad I moved this into current sprint. I want to get a good handle on this before investing more time in writing new stories. Ideally we adopt 6.0 now and get the new stuff for new stories. Worst case, we confirm that we shouldn't update to 6 for some reason, or updating is blocked because we need to rewrite stories. |
Looking at the Storybook docs, I think there's a new way to declare your components props, which will automatically generate docs and knobs (now called
Controls
):https://storybook.js.org/docs/react/writing-stories/args
https://storybook.js.org/docs/react/writing-stories/introduction#using-args
Maybe we can use this to make it easier to write stories & document our components.
We might need to upgrade for this – and we probably should anyway. We're on
"@storybook/react": "5.3.18",
, latest is 6+:(Side note: why is RenovateBot not suggesting this update?!)
The text was updated successfully, but these errors were encountered: