mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
18 lines
392 B
Plaintext
18 lines
392 B
Plaintext
```html
|
|
<!-- MyComponent.stories.svelte -->
|
|
|
|
<script>
|
|
import { Meta, Template, Story } from '@storybook/addon-svelte-csf';
|
|
|
|
import MyComponent from './MyComponent.svelte';
|
|
</script>
|
|
|
|
<meta title="MyComponent" component="{MyComponent}" />
|
|
|
|
<template let:args>
|
|
<MyComponent {...args} />
|
|
</template>
|
|
|
|
<Story name="ExampleStory" args={{ propertyA: process.env.STORYBOOK_DATA_KEY, }} />
|
|
```
|