storybook/docs/snippets/common/component-story-mdx-argstable-block-for-story.with-story.mdx.mdx
2022-02-22 23:02:42 +00:00

22 lines
391 B
Plaintext

```md
<!-- MyComponent.stories.mdx -->
import { ArgsTable, Meta, Story } from '@storybook/addon-docs';
import { MyComponent } from './MyComponent';
<Meta title="MyComponent" component={MyComponent} />
export const Template = (args) => ({
//👇 Your template goes here
});
# My Component!
<Story
name="My Story" >
{Template.bind({})}
</Story>
<ArgsTable story="My Story" />
```