storybook/docs/snippets/common/component-story-mdx-argstable-block-for-story.with-story.mdx.mdx
2022-07-07 19:26:21 +01:00

17 lines
337 B
Plaintext

```md
<!-- MyComponent.stories.mdx -->
import { ArgsTable, Meta, Story } from '@storybook/addon-docs';
import { MyComponent } from './MyComponent';
<Meta title="MyComponent" component={MyComponent} />
# My Component!
<Story
name="My Story"
render={() => ({ // Your implementation here })} />
<ArgsTable story="My Story" />
```