Replies: 6 comments 8 replies
-
Personally I don't understand why you deprecated And without type safety, I've already had 2 engineers break controls in our storybook. This is a rash decision to deprecate knobs now without a feature-equivalent replacement and IMHO it should be undone. |
Beta Was this translation helpful? Give feedback.
-
With knobs following code is perfectly readable and doesn't require any additional ts typings even though it contains a special knob that allows to switch different cases.
With Args instead I don't have proper typing, the code is spread across the file and plainly speaking it is inferior |
Beta Was this translation helpful? Give feedback.
-
Regarding types, we'll be improving Args/Controls typing in 6.x/7.0 #13747 cc @kasperpeulen @yannbf. Regarding |
Beta Was this translation helpful? Give feedback.
-
Does this package work with react-native? Because I can't substitute @storybook/addon-knobs with @storybook/addon-controls!!! |
Beta Was this translation helpful? Give feedback.
-
Yes, I found that out while reading the thread on one of the issues here.
Even got it setup and working nicely so far.
Thanks for your reply.
…On Mon, 28 Mar, 2022, 5:59 am Michael Shilman, ***@***.***> wrote:
Yes, there is a v6 alpha of React native that supports controls
https://github.com/storybookjs/react-native/releases/tag/v6.0.1-beta.1
—
Reply to this email directly, view it on GitHub
<#15060 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGZ5WF3BNTDJV7PEXBRU5BLVCD4OXANCNFSM45TNUHRA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Migration instructions 404, moved to here. |
Beta Was this translation helpful? Give feedback.
-
We released Storybook Controls as the successor to Knobs. Now, after a year, we're formally deprecating Knobs.
Unlike Knobs, Controls are built on Args, meaning they:
Switching to Controls/Args fixed a lot of outstanding Knobs issues, and (in our opinion) was a superior option to knobs from the start. Not all of our users agreed, so over the past year we released a variety of updates to Controls to close feature gaps. While there are still plenty of improvements on deck, after a year we feel confident to formally deprecate Knobs.
We've extracted Knobs from Storybook's monorepo, and it can be independently maintained/released if anybody would like to step up to keep the project going. Meanwhile, we recommend all Knobs users to switch over to Controls, and we've written instructions to help with the migration.
Beta Was this translation helpful? Give feedback.
All reactions