storybook/docs/snippets/vue/button-story.mdx.mdx
2021-11-09 01:41:54 +00:00

20 lines
332 B
Plaintext

```md
<!-- Button.stories.mdx-->
import { Meta, Story } from '@storybook/addon-docs';
import Button from './Button.vue';
<Meta title="Button" component={Button} />
# Button
<Story name="Primary">
{() => {
return {
components: { Button },
template: `<Button primary label="Button" />`,
};
}}
</Story>
```