mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 23:02:00 +08:00
18 lines
352 B
Plaintext
18 lines
352 B
Plaintext
```md
|
|
<!-- Button.stories.mdx --->
|
|
|
|
import { Story } from '@storybook/addon-docs';
|
|
|
|
import { Button } from './button.component';
|
|
|
|
<!-- Render functions are a framework specific feature to allow you control on how the component renders -->
|
|
|
|
<Story
|
|
name="Basic"
|
|
args={{
|
|
label: 'hello'
|
|
}}
|
|
render={(args) => ({
|
|
props: args,
|
|
})} />
|
|
``` |