storybook/docs/snippets/angular/component-story-static-asset-without-import.ts.mdx
2021-09-03 23:31:04 +01:00

19 lines
265 B
Plaintext

```ts
// MyComponent.stories.ts
import { MyComponent } from './MyComponent.component';
export default {
component: MyComponent,
};
export const withAnImage = {
render: () => ({
props: {
src: '/image.png',
alt: 'my image',
},
}),
};
```