-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Storybook: Add radiocontrol component #18474
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We no longer can preview Storybook changes from the integration with PR.
Code wise it looks great. As a follow-up we could add a few integrations with knobs.
I debated including knobs for this one, but there wasn't really any options besides changes the text and number of options being shown. I wasn't sure how useful for understanding the component is by adding different text and/or more or less options. @ItsJonQ or @gziolo I'd welcome your feedback on what level of knobs do you see useful in this case? Any guidance on this or similar for future components or extending this one further The with or without help seems to be the only option, and there is another variant story for that. |
@mkaz Thank you for adding this Story! The only label I can think of would be a I wish we could set up a knob that syncs better with component state. For example, if you have a knob to control the |
Yes, this is a known limitation of using
I didn't mark it as a blocker because I still don't have a good sense of what we should be integrated with knobs. It feels like it should cover as much as possible, but it produces duplication when you want tot to include several examples. Thinking about it a bit more, how about we spend less time on it until we have all UI components exposed in Storybook and then revisit it by doing one pass? I have a hunch that we might also take a unified approach and do the following:
|
@gziolo Thanks, I was checking in to see if I was missing something, but sounds like we're about in the same space of figuring out how knobs should operate. I like the approach to doing a pass after to get a consistent implementation, it's a good idea. |
Description
Adds RadioControl component to Storybook
Related: #17973
How has this been tested?
Run
npm run storybook:dev
Types of changes
Storybook addition.