storybook/docs/snippets/angular/component-story-static-asset-cdn.ts.mdx
2021-09-06 22:03:15 +01:00

19 lines
294 B
Plaintext

```ts
// MyComponent.stories.ts
import { MyComponent } from './MyComponent.component';
export default {
component: MyComponent,
};
export const WithAnImage = {
render: () => ({
props: {
src: 'https://place-hold.it/350x150',
alt: 'My CDN placeholder',
},
}),
};
```