storybook/docs/snippets/svelte/button-story.js.mdx
2021-08-28 01:52:57 +01:00

20 lines
253 B
Plaintext

```js
// Button.stories.js
import Button from './Button.svelte';
export default {
component: Button,
};
export const Primary = {
render: () => ({
Component: Button,
props: {
primary: true,
label: 'Button',
},
}),
};
```