mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 05:01:11 +08:00
20 lines
426 B
TypeScript
20 lines
426 B
TypeScript
import { global as globalThis } from '@storybook/global';
|
|
import { withActions } from '@storybook/addon-actions/decorator';
|
|
|
|
export default {
|
|
component: globalThis.Components.Button,
|
|
args: {
|
|
label: 'Click Me!',
|
|
},
|
|
parameters: {
|
|
chromatic: { disable: true },
|
|
},
|
|
};
|
|
|
|
export const Basic = {
|
|
parameters: {
|
|
handles: [{ click: 'clicked', contextmenu: 'right clicked' }],
|
|
},
|
|
decorators: [withActions],
|
|
};
|