Storybook: Add a way to define a custom Provider and configuration
See original GitHub issueWe should allow the users to define a storybook.preview.js
configuration file. This would allow people to add additional decorators.
- Add
storybookPreviewConfig
path togetPaths()
, it should be aweb/config/storybook.preview.js
file. - Import that over here: https://github.com/redwoodjs/redwood/blob/e598a5116ba53785dae0a80fd9820b9ae5fa24d1/packages/core/config/storybook/preview.js#L10-L11
- Make sure that it’s optional and that a user is able to define a new decorator.
- Document this feature.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Configure Storybook
To control the way stories are rendered and add global decorators and parameters, create a .storybook/preview.js file. This is loaded in the Canvas...
Read more >Use a Provider component in Storybook - Ryan Lanciaux
Create a theme decorator storybook folder. Here we include our custom theme provider and define a component that receives a storyFn as a...
Read more >Configuring Storybook: 6 Tips You Can't Miss | by Zheng Li
Tip 1: The Storybook has its default webpack configuration, when trying to import your current webpack config or add your own rules, DO...
Read more >Using Storybook with React & Redux - DigitalOcean
storybook / directory and a config.js file. Once those pieces are in place, creating stories for React components is straightforward. //in Button ...
Read more >Set up Storybook for React Projects - Nx
Generate Storybook Configuration for a React project · Nx React Storybook Preset · Auto-generate Stories · Cypress tests for Stories · Example Files...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Resolved by #2054
Yup, this is resolved!