storybook/docs/snippets/common/component-story-mdx-argstable-block-for-story.mdx.mdx
2021-11-04 18:03:37 +00:00

22 lines
392 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" />
```