You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The knobs addon supports copying a URL with existing knob states. Some knobs may use a number as the value, however they are casted to a string when restoring knob state using the copied URL.
FYI, we’ve released addon-controls in Storybook 6.0. Controls are portable, auto-generated knobs that are intended to replace addon-knobs, which are slated for deprecation.
Appreciate the heads up. addon-controls and addon-knobs presumably play together fine right? (for context, there are 1110 and growing stories using @storybook/addon-knobs in the repo where this issue was identified, making incremental adoption a must)
@Silic0nS0ldier Yes, they can exist side by side, possibly even in the same story/component. But I'd probably convert them file by file, i.e. when you touch a component's stories, convert them all into controls in one shot.
Activity
shilman commentedon Apr 28, 2021
FYI, we’ve released
addon-controlsin Storybook 6.0. Controls are portable, auto-generated knobs that are intended to replaceaddon-knobs, which are slated for deprecation.Please upgrade and try out controls today!
Silic0nS0ldier commentedon Apr 29, 2021
Appreciate the heads up.
addon-controlsandaddon-knobspresumably play together fine right? (for context, there are 1110 and growing stories using@storybook/addon-knobsin the repo where this issue was identified, making incremental adoption a must)shilman commentedon Apr 29, 2021
@Silic0nS0ldier Yes, they can exist side by side, possibly even in the same story/component. But I'd probably convert them file by file, i.e. when you touch a component's stories, convert them all into controls in one shot.
mctrafik commentedon Sep 11, 2021
I'll take a stab at fixing this.