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

18 lines
300 B
Plaintext

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