storybook/docs/snippets/common/button-story-action-event-handle.mdx.mdx
2022-10-27 16:05:09 +02:00

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]}/>
```