mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:01:53 +08:00
17 lines
356 B
Plaintext
17 lines
356 B
Plaintext
```js
|
|
// src/components/MyComponent.stories.js|jsx
|
|
|
|
import { MyComponent } from './MyComponent';
|
|
|
|
/**
|
|
* Story written in CSF 3.0 with auto title generation
|
|
* See https://storybook.js.org/docs/7.0/react/api/csf
|
|
* to learn more about it.
|
|
*/
|
|
export default { component: MyComponent };
|
|
|
|
export const Default = {
|
|
args: { message: 'Hello world!' },
|
|
};
|
|
```
|