storybook/docs/snippets/svelte/button-story.js.mdx
2021-06-18 17:34:13 +01:00

19 lines
255 B
Plaintext

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