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