import { storiesOf } from '@storybook/angular';
import { action } from '@storybook/addon-actions';
import { boolean, text } from '@storybook/addon-knobs/angular';
import { MatButtonModule, MatIconModule } from '@angular/material';
storiesOf('Button', module)
.add('Basic', () => ({
template: `
`,
props: {
disabled: boolean('disabled', true),
btnText: text('btnText', 'secondry'),
onClick: action('click')
},
moduleMetadata: {
imports: [MatButtonModule]
}
}))
.add('Round', () => ({
template: `
`,
moduleMetadata: {
imports: [MatButtonModule, MatIconModule]
}
}));