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

38 lines
684 B
Plaintext

```md
<!-- Button.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import Button from './Button.vue';
<Meta title="Button" component={Button}/>
<Story name="Primary">
{() => {
return {
components: { Button },
template: `<Button background="#ff0" label="Button" />`,
};
}}
</Story>
<Story
name="Secondary">
{() => {
return {
components: { Button },
template: `<Button background="#ff0" label="😄👍😍💯" />`,
};
}}
</Story>
<Story
name="Tertiary">
{() => {
return {
components: { Button },
template: `<Button background="#ff0" label="📚📕📈🤓" />`,
};
}}
</Story>
```