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

18 lines
305 B
Plaintext

```js
// CSF 2
import Button from './Button.vue';
export default {
title: 'Button',
component: Button,
};
export const Primary = (args, { argTypes }) => ({
props: Object.keys(argTypes),
components: { Button },
template: '<Button v-bind="$props" />',
});
Primary.args = { primary: true };
```