mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 00:12:22 +08:00
18 lines
331 B
Plaintext
18 lines
331 B
Plaintext
```md
|
|
<!-- Button.stories.mdx --->
|
|
|
|
import { Meta, Story } from '@storybook/addon-docs';
|
|
|
|
import Button from './Button.svelte';
|
|
|
|
<Meta title="Button" component={Button}/>
|
|
|
|
export const Template = (args) => ({
|
|
Component: Button,
|
|
props: args,
|
|
});
|
|
|
|
<Story name="Basic" args={{ label: 'hello' }}>
|
|
{Template.bind({})}
|
|
</Story>
|
|
``` |