mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
17 lines
281 B
Plaintext
17 lines
281 B
Plaintext
```js
|
|
// MyComponent.stories.js|jsx
|
|
|
|
import { MyComponent } from './MyComponent';
|
|
|
|
export default {
|
|
component: MyComponent,
|
|
};
|
|
|
|
export const ExampleStory = {
|
|
args: {
|
|
propertyA: import.meta.env.STORYBOOK_DATA_KEY,
|
|
propertyB: import.meta.env.VITE_CUSTOM_VAR,
|
|
},
|
|
};
|
|
```
|