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