[addons/controls]: Docs for global controls
See original GitHub issueIs your feature request related to a problem? Please describe.
I use global controls for the color theme that applies to all of my components. In addons/knobs, I was able to add a global decorator addDecorator(withKnobs);
in preview.js
to show the theme controls for every component.
Describe the solution you’d like Well, I am unsure whether that feature is currently available in addons/controls. If it is, it’d be great to have a line or two in the documentation. If it isn’t, that’d be a great feature to implement.
Describe alternatives you’ve considered Delay migrating and stay with addons/knobs.
Are you able to assist bring the feature to reality? Maybe 😉 if it’s docs, I bet I could handle it
Additional context An option to cache the values in localStorage across pages would be nice.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
From now on i recommended
npx sb@next upgrade --prerelease
which batch upgrades all storybook packages to the latestWe recently renamed
useGlobalArgTypes
touseGlobalTypes
across the codebase in https://github.com/storybookjs/storybook/releases/tag/v6.0.0-beta.39. That failure indicates that some of your packages are earlier versions than that, and some are after. We’re going into RC tomorrow, so there shouldn’t be anymore breaking changes between now and the 6.0 final release, just bug fixes.