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

13 lines
273 B
Plaintext

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