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

17 lines
348 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>
```