mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 05:51:48 +08:00
18 lines
351 B
Plaintext
18 lines
351 B
Plaintext
```md
|
|
<!-- Button.stories.mdx -->
|
|
|
|
import { Meta } from '@storybook/addon-docs';
|
|
import { withActions } from '@storybook/addon-actions/decorator';
|
|
|
|
import { Button } from './Button';
|
|
|
|
<Meta
|
|
title="Button"
|
|
parameters={{
|
|
actions: {
|
|
handles: ['mouseover', 'click .btn'],
|
|
},
|
|
}}
|
|
component={Button}
|
|
decorators={[withActions]}/>
|
|
``` |