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