mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 03:21:49 +08:00
16 lines
235 B
Plaintext
16 lines
235 B
Plaintext
```js
|
|
// MyComponent.stories.js|jsx
|
|
|
|
import { MyComponent } from './MyComponent';
|
|
|
|
export default {
|
|
component: MyComponent,
|
|
};
|
|
|
|
export const Basic = {};
|
|
|
|
export const WithProp = {
|
|
render: () => <MyComponent prop="value" />,
|
|
};
|
|
```
|