storybook/docs/snippets/svelte/component-story-static-asset-without-import.mdx.mdx
2021-08-09 19:19:01 +01:00

21 lines
345 B
Plaintext

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