mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
27 lines
443 B
Plaintext
27 lines
443 B
Plaintext
```js
|
|
// Button.stories.js | Button.stories.jsx | Button.stories.ts | Button.stories.tsx
|
|
|
|
import { Button } from './Button';
|
|
|
|
export default {
|
|
component: Button,
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
component: 'Some component _markdown_',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
|
|
export const WithStoryDescription = {
|
|
parameters: {
|
|
docs: {
|
|
description: {
|
|
story: 'Some story **markdown**',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
```
|