mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 15:41:57 +08:00
13 lines
251 B
Plaintext
13 lines
251 B
Plaintext
```md
|
|
<!-- MyComponent.stories.mdx -->
|
|
|
|
import { Meta, Story } from '@storybook/addon-docs';
|
|
|
|
<Meta title='img' />
|
|
|
|
<Story name='withAnImage'>
|
|
{{
|
|
template: `<img src="https://place-hold.it/350x150" alt="My CDN placeholder" />`,
|
|
}}
|
|
</Story>
|
|
``` |