storybook/docs/snippets/svelte/component-story-static-asset-cdn.mdx.mdx
2021-08-05 18:51:23 +01:00

21 lines
364 B
Plaintext

```md
<!-- MyComponent.stories.js -->
import { Meta, Story } from '@storybook/addon-docs';
import MyComponent from './MyComponent.svelte';
<Meta title="img" />
<Story name="withAnImage">
{() => {
return {
Component: MyComponent,
props: {
src: 'https://place-hold.it/350x150',
alt: 'my image',
},
};
}}
</Story>
```