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

11 lines
240 B
Plaintext

```ts
// CSF 2
// Other imports and story implementation
export const Default: StoryFn<typeof Button> = (args, { argTypes }) => ({
props: Object.keys(argTypes),
components: { Button },
template: `<Button v-bind="$props" />`,
});
```