mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:32:02 +08:00
17 lines
289 B
Plaintext
17 lines
289 B
Plaintext
```js
|
|
// components/MyComponent/MyComponent.stories.js|jsx|ts|tsx
|
|
|
|
import { MyComponent } from './MyComponent.js'
|
|
|
|
export default {
|
|
component: MyComponent,
|
|
title: 'components/MyComponent/MyComponent',
|
|
};
|
|
|
|
export const Default = {
|
|
args: {
|
|
something: 'Something else',
|
|
},
|
|
};
|
|
|
|
``` |