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