question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[addons/controls]: Docs for global controls

See original GitHub issue

Is 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:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
shilmancommented, Jul 22, 2020

From now on i recommended npx sb@next upgrade --prerelease which batch upgrades all storybook packages to the latest

2reactions
shilmancommented, Jul 6, 2020

We recently renamed useGlobalArgTypes to useGlobalTypes 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Globals Controls Addon | Storybook: Frontend workshop for UI ...
For these, Globals Controls addon gives you the same graphical UI as Storybook Controls, but to dynamically interact with the Storybook's globals variables....
Read more >
@luigiminardim/storybook-addon-globals-controls - npm
luigiminardim/storybook-addon-globals-controls gives you a graphical UI to dynamically interact with the Storybook's globals variables.
Read more >
@storybook/addon-controls | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >
storybook/addon-controls v6.5.12 - npm.io
Controls supports the following configuration parameters, either globally or on a per-story basis: Expanded: show property documentation ...
Read more >
Manage your apps in the Microsoft Teams admin center
App permission policies control what apps you want to make available to Teams users in your organization. You can use the Global (Org-wide) ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found