-
-
Save fatihdgn/b293a25974282294f9a11e66a31246ba to your computer and use it in GitHub Desktop.
Angular Component Library w/ StoryBook - Section III
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { storiesOf } from '@storybook/angular'; | |
import { action } from '@storybook/addon-actions'; | |
import { ButtonComponent } from '../../projects/my-lib/src/lib/button/button.component'; | |
storiesOf('my-lib', module) | |
.add('button', () => ({ | |
component: ButtonComponent, | |
props:{ | |
text: "Hello", | |
click: action("You clicked me...") | |
} | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment