storybook/docs/snippets/angular/component-story-static-asset-without-import.mdx.mdx
2021-11-06 03:20:29 +00:00

20 lines
378 B
Plaintext

```md
<!-- MyComponent.stories.mdx -->
import { Meta, Story } from '@storybook/addon-docs';
import { MyComponent } from './MyComponent.component';
<Meta title="img" component={MyComponent}/>
<!-- Assume image.png is located in the "public" directory.-->
<Story
name="WithAnImage">
{{
props: {
src: '/image.png',
alt: 'my image',
},
}}
</Story>
```