storybook/docs/snippets/web-components/button-story-action-event-handle.js.mdx
2023-05-25 21:04:33 +01:00

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],
};
```