mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 09:22:09 +08:00
19 lines
344 B
Plaintext
19 lines
344 B
Plaintext
```ts
|
|
// Button.stories.ts
|
|
|
|
import type { Meta } from '@storybook/web-components';
|
|
import { withActions } from '@storybook/addon-actions/decorator';
|
|
|
|
const meta: Meta = {
|
|
component: 'demo-button',
|
|
parameters: {
|
|
actions: {
|
|
handles: ['mouseover', 'click .btn'],
|
|
},
|
|
},
|
|
decorators: [withActions],
|
|
};
|
|
|
|
export default meta;
|
|
```
|