mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
35 lines
537 B
Plaintext
35 lines
537 B
Plaintext
```js
|
|
// Button.stories.js|jsx
|
|
|
|
import { Button } from './Button';
|
|
|
|
/**
|
|
* # Button stories
|
|
* These stories showcase the button
|
|
*/
|
|
export default {
|
|
component: Button
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
component: 'Another description, overriding the comments'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* # Primary Button
|
|
* This is the primary button
|
|
*/
|
|
export const Primary = {
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
story: 'Another description on the story, overriding the comments'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
```
|