storybook/docs/snippets/svelte/button-story.native-format.mdx
2021-05-06 17:36:21 +01:00

15 lines
282 B
Plaintext

```html
<!-- Button.stories.svelte -->
<script>
import { Meta, Story } from '@storybook/addon-svelte-csf';
import Button from './Button.svelte';
</script>
<Meta title="Button" component={Button} />
<Story name="Primary">
<Button primary=true label="Button" />
</Story>
```