storybook/docs/snippets/vue/button-story-with-emojis.js.mdx
2021-10-06 19:14:13 +01:00

33 lines
672 B
Plaintext

```js
// Button.stories.js
import Button from './Button.vue';
export default {
component: Button,
};
// The render function is a framework specific construct to define how the story should render
export const Primary = {
render: () => ({
components: { Button },
template: '<Button backgroundColor="#ff0" label="Button" />',
}),
};
export const Secondary = {
render: () => ({
components: { Button },
template: '<Button backgroundColor="#ff0" label="😄👍😍💯" />',
}),
};
export const Tertiary = {
render: () => ({
components: { Button },
template: '<Button backgroundColor="#ff0" label="📚📕📈🤓" />',
}),
};
```