storybook/docs/snippets/svelte/button-story.native-format.mdx
2022-11-17 16:33:22 +01:00

16 lines
287 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>
```