mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
17 lines
308 B
Plaintext
17 lines
308 B
Plaintext
```md
|
|
<!--- MyComponent.stories.mdx -->
|
|
|
|
import { ArgsTable, Story } from '@storybook/addon-docs';
|
|
|
|
import { MyComponent } from './MyComponent';
|
|
|
|
# My Component!
|
|
|
|
<Story name="My Story">
|
|
<!-- my story for MyComponent -->
|
|
{(args) => <MyComponent {...args} />}
|
|
</Story>
|
|
|
|
<ArgsTable story="My Story" />
|
|
```
|