-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
extend documentation on how to use knob in Angular #3247
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
Conversation
addons/knobs/README.md
Outdated
|
|
||
| const stories = storiesOf('Storybook Knobs', module); | ||
|
|
||
| // The "addDecorator" must come before the "add" |
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.
I would say
"withKnobs" decorator should be applied before the stories using knobs
addons/knobs/README.md
Outdated
| stories.add('with text', () => ({ | ||
| component: Button, | ||
| props: { | ||
| text: text('text', 'Hello Button'), // The first param on the text knob has to be exactly the same as the component input. |
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.
The first param of the knob function.
igor-dv
left a comment
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.
LGTM
extend documentation on how to use knob in Angular
Issue:
What I did
I extended documentation on how to use knob inputs in Angular
How to test
Is this testable with jest or storyshots?
No
Does this need a new example in the kitchen sink apps?
Maybe we could add one?
Does this need an update to the documentation?
N/A
If your answer is yes to any of these, please make sure to include it in your PR.