mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:31:49 +08:00
21 lines
436 B
Plaintext
21 lines
436 B
Plaintext
```js
|
|
// MyComponent.stories.js|jsx
|
|
|
|
import { MyComponent } from './MyComponent';
|
|
|
|
export default {
|
|
/* 👇 The title prop is optional.
|
|
* See https://storybook.js.org/docs/7.0/react/configure/overview#configure-story-loading
|
|
* to learn how to generate automatic titles
|
|
*/
|
|
title: 'Path/To/MyComponent',
|
|
component: MyComponent,
|
|
};
|
|
|
|
export const Simple = {
|
|
decorators: [...],
|
|
name: 'So simple!',
|
|
parameters: {...},
|
|
}
|
|
```
|