-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Feature Request]: Allow multiple conditional controls #21281
Comments
Hello, I'm trying to implement multiple conditions on storybook level and saw this PR. are we considering to add some options on the level of each "if" condition such as:
|
Any news on that? |
Guys, this feature is very important and I'm quite surprised it wasn't thought before hand and included in the initial implementation, since its quite obvious that something like this would be required. |
I've researched implementing this feature, and I learned that Storybook uses ComponentDriven/csf standard to create and validate conditional args (defined here). I doubt storybook maintainers want to deviate from that so it looks like a feature request will need to be opened with csf. |
Hi guys, this feature is very important to maintain the design system in a storybook, So have you any solution? |
I needed something similar and created a PR: ComponentDriven/csf#76 |
I just started working with storybook and it really came as a surprise to me that you can only use one condition.
|
Multiple condition controls feature implemented? |
@KalidossRajendran I think not yet |
Any reason why the PR was closed? |
Is your feature request related to a problem? Please describe
I'm converting dynamic knobs to controls in prep for 7.0 knob deprecation. Some of our more complex stories require more than one condition for some controls.
Adding more than one conditional in this way is not a valid solution.
Describe the solution you'd like
I would like the ability to assign array of objects to 'if' rather than object. If conditions within the array should be logically ANDed.
Suggestion for solution
Describe alternatives you've considered
I've considered splitting the situations into different stories, but this would alter the story experience.
Are you able to assist to bring the feature to reality?
yes, I can
Additional context
No response
The text was updated successfully, but these errors were encountered: