storybook/docs/snippets/vue/button-story-with-emojis.mdx.mdx
2022-07-07 18:50:21 +01:00

33 lines
827 B
Plaintext

```md
<!-- Button.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import Button from './Button.vue';
<Meta title="Button" component={Button}/>
<!--
👇 Render functions are a framework specific feature to allow you control on how the component renders.
See https://storybook.js.org/docs/7.0/vue/api/csf
to learn how to use render functions.
-->
<Story
name="Primary"
render={() => ({
components: { Button },
template: `<Button background="#ff0" label="Button" />`,
})} />
<Story
name="Secondary"
render={() => ({
components: { Button },
template: `<Button background="#ff0" label="😄👍😍💯" />`,
})} />
<Story
name="Tertiary"
render={() => ({
components: { Button },
template: `<Button background="#ff0" label="📚📕📈🤓" />`,
})} />
```