storybook/docs/snippets/vue/button-story-with-args.3.js.mdx
2021-08-28 01:52:57 +01:00

24 lines
336 B
Plaintext

```js
// Button.stories.js
import Button from './Button.vue';
export default {
component: Button,
};
export const Primary = {
args: {
primary: true,
label: 'Button',
},
render: (args) => ({
components: { Button },
setup() {
return { args };
},
template: '<Button v-bind="args" />',
}),
};
```