Skip to content

Instantly share code, notes, and snippets.

@fatihdgn
Created May 30, 2019 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fatihdgn/b293a25974282294f9a11e66a31246ba to your computer and use it in GitHub Desktop.
Save fatihdgn/b293a25974282294f9a11e66a31246ba to your computer and use it in GitHub Desktop.
Angular Component Library w/ StoryBook - Section III
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