-
-
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
addon-controls - Better documentation for custom options controls #10947
Comments
Yes, this issue helped me figure out how to use this too. Is it documented anywhere on how to exclude props from the output too? |
Great Caesar's ghost!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-beta.20 containing PR #11003 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
@sami616 There are |
@shilman is there a way to exclude from the controls, but keep in the prop table? |
@sami616 If your stories don't use args, the controls won't show up. There probably should be a prop for that as well. |
Yowza!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.0-beta.39 containing PR #11388 that references this issue. Upgrade today to try it out! You can find this prerelease on the |
Is your feature request related to a problem? Please describe.
I was playing around the new addon-controls, but I had trouble finding how to implement a custom radio control for a prop with limited options
Describe the solution you'd like
An example of how to use the options controls, I had to dig into the tests to find out how to use them properly (eg: a combination of
controlType'
,type
andoptions
)Describe alternatives you've considered
An example in the addon-controls doc that shows a custom option control scenario
Are you able to assist bring the feature to reality?
Not for a PR, but here's my working story for inspiration:
Additional context
storybook/addons/docs/src/frameworks/common/enhanceArgTypes.test.ts
Lines 142 to 152 in bf1b955
The text was updated successfully, but these errors were encountered: