mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:01:48 +08:00
18 lines
368 B
Plaintext
18 lines
368 B
Plaintext
```md
|
|
<!-- Button.stories.mdx-->
|
|
|
|
import { Meta, Story } from '@storybook/addon-docs';
|
|
|
|
import { Button } from './Button';
|
|
|
|
<Meta title="Button" component={Button}/>
|
|
|
|
<!-- Render functions are a framework specific feature to allow you control on how the component renders -->
|
|
|
|
# Button
|
|
|
|
<Story
|
|
name="Primary"
|
|
render={() => <Button primary>Button</Button>} />
|
|
```
|