mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
15 lines
269 B
TypeScript
15 lines
269 B
TypeScript
import globalThis from 'global';
|
|
|
|
import { action } from '@storybook/addon-actions';
|
|
|
|
export default {
|
|
component: globalThis.Components.Button,
|
|
args: {
|
|
children: 'Click Me!',
|
|
},
|
|
};
|
|
|
|
export const BasicExample = {
|
|
args: { onClick: action('hello-world') },
|
|
};
|