storybook/docs/snippets/svelte/my-component-story-basic-and-props.native-format.mdx
2021-05-06 20:04:33 +01:00

16 lines
293 B
Plaintext

```html
<!-- MyComponent.stories.svelte -->
<script>
import { Meta, Story } from '@storybook/addon-svelte-csf';
import MyComponent from './MyComponent.svelte';
</script>
<Story name="Basic">
<MyComponent />
</Story>
<Story name="WithProp">
<MyComponent prop="value"/>
</Story>
```