mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 09:22:09 +08:00
20 lines
356 B
Plaintext
20 lines
356 B
Plaintext
```ts
|
|
// MyComponent.stories.ts
|
|
|
|
import type { Meta, StoryObj } from '@storybook/web-components';
|
|
|
|
const meta: Meta = {
|
|
component: 'my-component',
|
|
};
|
|
|
|
export default meta;
|
|
type Story = StoryObj;
|
|
|
|
export const ExampleStory: Story = {
|
|
args: {
|
|
propertyA: import.meta.env.STORYBOOK_DATA_KEY,
|
|
propertyB: import.meta.env.VITE_CUSTOM_VAR,
|
|
},
|
|
};
|
|
```
|