storybook/docs/snippets/svelte/component-story-static-asset-cdn.native-format.mdx
2021-11-06 03:20:29 +00:00

20 lines
372 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://place-hold.it/350x150" alt="My CDN placeholder" />
</Template>
<Story name="WithAnImage" />
```