storybook/docs/snippets/svelte/component-story-static-asset-cdn.native-format.mdx
Norbert de Langen 3d06286155
change the location of placeholder images to something we host ourselves
to reduce flake (you can ask yann what that means)
2022-08-05 15:05:10 +02:00

20 lines
399 B
Plaintext

```html
<!-- MyComponent.stories.svelte -->
<script>
import { Meta, Template, Story } from '@storybook/addon-svelte-csf';
import MyComponent from './MyComponent.svelte';
</script>
<Meta
title="img"
component={MyComponent}
/>
<Template>
<MyComponent src="https://storybook.js.org/images/placeholders/350x150.png" alt="My CDN placeholder" />
</Template>
<Story name="WithAnImage" />
```