mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 07:01:21 +08:00
9 lines
184 B
Plaintext
9 lines
184 B
Plaintext
```js
|
|
// Button.stories.js
|
|
|
|
export const Text = ({ label, onClick }) => <Button label={label} onClick={onClick} />;
|
|
Text.args = {
|
|
label: 'Hello',
|
|
onClick: action('clicked'),
|
|
};
|
|
``` |