storybook/docs/snippets/angular/component-story-static-asset-without-import.ts.mdx
2021-01-27 20:43:31 +00:00

13 lines
228 B
Plaintext

```ts
// MyComponent.stories.ts
import { Meta } from '@storybook/angular/types-6-0';
export default {
title: 'img',
} as Meta;
export const withAnImage = () => ({
template: `<img src="/image.png" alt="my image"/>`
});
```