mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 03:21:49 +08:00
18 lines
279 B
Plaintext
18 lines
279 B
Plaintext
```js
|
|
// MyComponent.stories.js | MyComponent.stories.jsx
|
|
|
|
import React from 'react';
|
|
|
|
import { MyComponent } from './MyComponent';
|
|
|
|
export default {
|
|
component: MyComponent,
|
|
};
|
|
|
|
export const ExampleStory = {
|
|
args: {
|
|
propertyA: process.env.STORYBOOK_DATA_KEY,
|
|
},
|
|
};
|
|
```
|