mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 21:31:48 +08:00
17 lines
348 B
Plaintext
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>
|
|
```
|