mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 07:01:53 +08:00
16 lines
263 B
Plaintext
16 lines
263 B
Plaintext
```js
|
|
// Button.stories.js
|
|
|
|
import { withActions } from '@storybook/addon-actions/decorator';
|
|
|
|
export default {
|
|
component: 'demo-button',
|
|
parameters: {
|
|
actions: {
|
|
handles: ['mouseover', 'click .btn'],
|
|
},
|
|
},
|
|
decorators: [withActions],
|
|
};
|
|
```
|