mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 00:22:07 +08:00
19 lines
483 B
TypeScript
19 lines
483 B
TypeScript
import { storiesOf } from '@storybook/angular';
|
|
import { IconButtonComponent } from './icon-button.component';
|
|
import { BaseButtonComponent } from './base-button.component';
|
|
|
|
storiesOf('Inheritance', module)
|
|
.add('icon button', () => ({
|
|
component: IconButtonComponent,
|
|
props: {
|
|
icon: 'this is icon',
|
|
label: 'this is label',
|
|
},
|
|
}))
|
|
.add('base button', () => ({
|
|
component: BaseButtonComponent,
|
|
props: {
|
|
label: 'this is label',
|
|
},
|
|
}));
|