mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 08:01:54 +08:00
18 lines
272 B
Plaintext
18 lines
272 B
Plaintext
```ts
|
|
//Button.stories.ts
|
|
|
|
import { Story } from '@storybook/angular/types-6-0';
|
|
|
|
const Template: Story<Button> = (args) => ({
|
|
component: Button,
|
|
props: args,
|
|
});
|
|
|
|
export const Primary = Template.bind({});
|
|
|
|
Primary.args = {
|
|
primary: true,
|
|
label: 'Primary',
|
|
};
|
|
```
|