-
Notifications
You must be signed in to change notification settings - Fork 9
Conversation
Links used to be an add-on, but are now supported natively in storybook. Updated the docs to reflect that.
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.
Awesome!! ✅ It just misses a i to "Simlar to Invision..."
|
||
With that, you can link an event in a component to any story in the Storybook. | ||
|
||
* First parameter is the the story kind (what you named with storiesOf). |
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.
extra "the"
* Second parameter is the story name (what you named with .add). | ||
|
||
You can also pass a function instead for any of above parameter. That function accepts arguments emitted by the event and it should return a string. | ||
|
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.
Maybe here could be a short example, like:
linkTo(() => 'Button', () => 'Second')
Great! 👍 But do I miss something with |
Great catch @usulpro . I'll fix the documentation and file a bug on storybooks for followup. |
Issue: #10
What I did
Links used to be an add-on, but are now supported natively in
storybook. Updated the docs to reflect that.