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