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

38 lines
687 B
Plaintext

```js
// Button.stories.js
import Button from './Button.svelte';
export default {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/svelte/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'Button',
component: Button,
};
export const Primary = () => ({
Component: Button,
props: {
background: '#ff0',
label: 'Button',
},
});
export const Secondary = () => ({
Component: Button,
props: {
background: '#ff0',
label: '😄👍😍💯',
},
});
export const Tertiary = () => ({
Component: Button,
props: {
background: '#ff0',
label: '📚📕📈🤓',
},
});
```