mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 05:31:05 +08:00
20 lines
291 B
Plaintext
20 lines
291 B
Plaintext
```js
|
|
// MyComponent.stories.js
|
|
|
|
import MyComponent from './MyComponent.svelte';
|
|
|
|
export default {
|
|
component: MyComponent,
|
|
};
|
|
|
|
const Template = {
|
|
args: {
|
|
propertyA: process.env.STORYBOOK_DATA_KEY,
|
|
},
|
|
render: (args) => ({
|
|
Component: MyComponent,
|
|
props: args,
|
|
}),
|
|
};
|
|
```
|