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