import MyButton from './Button.vue'; // More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export export default { title: 'Example/Button', component: MyButton, // This component will have an automatically generated docsPage entry: https://storybook.js.org/docs/vue/writing-docs/docs-page tags: ['docsPage'], // More on component templates: https://storybook.js.org/docs/vue/writing-stories/introduction#using-args render: (args, { argTypes }) => ({ props: Object.keys(argTypes), components: { MyButton }, template: '', }), // More on argTypes: https://storybook.js.org/docs/vue/api/argtypes argTypes: { backgroundColor: { control: 'color' }, size: { control: { type: 'select' }, options: ['small', 'medium', 'large'], }, }, }; export const Primary = { args: { primary: true, label: 'Button', }, }; export const Secondary = { args: { label: 'Button', }, }; export const Large = { args: { size: 'large', label: 'Button', }, }; export const Small = { args: { size: 'small', label: 'Button', }, };