storybook/docs/snippets/vue/csf-3-example-starter.ts-2.ts.mdx
2023-01-06 19:15:31 +00:00

15 lines
288 B
Plaintext

```ts
// CSF 3
import type { Meta, StoryObj } from '@storybook/vue';
import Button from './Button.vue';
const meta: Meta<typeof Button> = { component: Button };
export default meta;
type Story = StoryObj<typeof Button>;
export const Primary: Story = { args: { primary: true } };
```