mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
20 lines
395 B
Plaintext
20 lines
395 B
Plaintext
```js
|
|
// Button.stories.js | Button.stories.jsx | Button.stories.ts | Button.stories.tsx
|
|
|
|
import { Button } from './Button';
|
|
|
|
import { CustomDocumentationComponent } from './CustomDocumentationComponent';
|
|
|
|
export default {
|
|
component: Button,
|
|
argTypes: {
|
|
backgroundColor: { control: 'color' },
|
|
},
|
|
parameters: {
|
|
docs: {
|
|
page: CustomDocumentationComponent,
|
|
},
|
|
},
|
|
};
|
|
```
|