-
Notifications
You must be signed in to change notification settings - Fork 19
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
Code Preview for Knobs #24
Comments
@danyball this is a great feature. we're making a bunch of changes inside storybook that will make this easier to do in a cross-framework way, but currently don't have a timeline on delivery. i've marked this as |
Duplicate? storybookjs/storybook#9801 Close other if duplicate :) |
Not a duplicate |
Would love to be able to do that! Looks like the guys from wix are doing it here: |
Hi gang, We’ve just released addon-controls in 6.0-beta! Controls are portable, auto-generated knobs that are intended to replace addon-knobs long term. Please upgrade and try them out today. Thanks for your help and support getting this stable for release! |
@shilman it doesn't seem like addon-controls addresses the original issue here? |
For anybody who is interested in Controls but don't know where to start, I've created a quick & dirty step-by-step walkthrough to go from a fresh CRA project to a working demo. Check it out: => Storybook Controls w/ CRA & TypeScript There are also some "knobs to controls" migration docs in the Controls README: |
@colinmosher Not yet. But it’s in progress and when us done, it will work with controls and very likely will NOT work with knobs. Therefore it’s important that knobs users know about controls and consider migrating! |
We are producing WebComponents with several options. The Addon "Knobs" is perfect to show the result of the combination of these knobs.
Our customers wants to compose their combination of knobs they want and copy that sourcecode. Our goal would be to show that code as a preview and give the possibility to copy that with one click.
For example we have the component "axa-button":
The code of the story is like
<axa-button variant="${allVariants}"</axa-button>
and if the user choose "red" from knobs addon, he wants to get that code-snippet to copy:
<axa-button variant="red"</axa-button>
You can find that button showcase for our project here.
Is or would that be possible?
Thanks
Daniel
The text was updated successfully, but these errors were encountered: