mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:21:57 +08:00
18 lines
310 B
Plaintext
18 lines
310 B
Plaintext
```md
|
|
<!-- Button.stories.mdx-->
|
|
|
|
import { Meta, Story } from '@storybook/addon-docs';
|
|
|
|
import { Button } from './Button';
|
|
|
|
<Meta title="Components/Button" component={Button} />
|
|
|
|
<Story
|
|
name="Primary"
|
|
args={{
|
|
primary: true,
|
|
label: 'Button',
|
|
}}
|
|
render={(args) => ( <Button {...args} />)} />
|
|
```
|