mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
18 lines
282 B
Plaintext
18 lines
282 B
Plaintext
```ts
|
|
// CSF 2
|
|
|
|
import { Meta, Story } from '@storybook/angular';
|
|
|
|
import { Button } from './button.component';
|
|
|
|
export default {
|
|
title: 'Button',
|
|
component: Button,
|
|
} as Meta;
|
|
|
|
export const Primary: Story = (args) => ({
|
|
props: args,
|
|
});
|
|
Primary.args = { primary: true };
|
|
```
|