mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
17 lines
368 B
Plaintext
17 lines
368 B
Plaintext
```ts
|
|
// CSF 2
|
|
import { Meta, StoryFn } from '@storybook/vue';
|
|
import { Button } from './Button';
|
|
|
|
export default {
|
|
title: 'components/Button',
|
|
component: Button,
|
|
} as Meta<typeof Button>;
|
|
|
|
export const Primary: StoryFn<typeof Button> = (args, { argTypes }) => ({
|
|
props: Object.keys(argTypes),
|
|
components: { Button },
|
|
});
|
|
Primary.args = { primary: true };
|
|
```
|