mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
21 lines
405 B
Plaintext
21 lines
405 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 -->
|
|
|
|
<Story
|
|
name="Large"
|
|
parameters={{
|
|
backgrounds: {
|
|
disable: true,
|
|
},
|
|
}}
|
|
render={() => ({ })}>
|
|
</Story>
|
|
``` |