storybook/docs/snippets/svelte/button-story-with-addon-example.native-format.mdx
2021-11-09 01:41:54 +00:00

23 lines
371 B
Plaintext

```html
<!-- Button.stories.svelte -->
<script>
import { Meta, Template, Story } from '@storybook/addon-svelte-csf';
import Button from './Button.svelte';
</script>
<Meta
title="Button"
component={Button}
parameters={{
myAddon: {
data: 'this data is passed to the addon',
},
}}
/>
<Template let:args>
<Button {...args} />
</Template>
```