storybook/docs/snippets/common/mdx-canvas-doc-block.mdx.mdx
2022-02-22 23:02:42 +00:00

21 lines
518 B
Plaintext

```md
<!-- ExampleStory.stories.mdx -->
import { Canvas, Meta } from '@storybook/addon-docs';
import { ExampleComponent} from './ExampleComponent';
export const Template = (args) => (
/*
* Your template implementation goes here.
* Read more about Storybook templates at:
* https://storybook.js.org/docs/react/get-started/whats-a-story
*/
);
<Meta title="SampleComponent" component={ ExampleComponent } />
<Canvas columns={2} withSource="open" withToolbar>
<!-- Your stories go here -->
</Canvas>
```