storybook/docs/snippets/common/component-story-mdx-dedent.mdx.mdx
2021-05-07 11:51:52 +08:00

16 lines
236 B
Plaintext

```md
<!--- MyComponent.stories.mdx -->
import { Source } from '@storybook/addon-docs';
import dedent from 'ts-dedent';
<Source
language='css'
code={dedent`
.container {
display: grid | inline-grid;
}
`}
/>
```