storybook/docs/snippets/common/my-component-with-story-content.mdx.mdx
2020-10-07 12:23:34 +08:00

12 lines
204 B
Plaintext

```md
<!-- MyComponent.stories.mdx --->
import { Canvas } from '@storybook/addon-docs/blocks';
import { MyComponent } from './MyComponent';
<Canvas>
<h2>Some here</h2>
<MyComponent />
</Canvas>
```