mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
16 lines
269 B
Plaintext
16 lines
269 B
Plaintext
```js
|
|
// Button.stories.js|jsx
|
|
|
|
import { action } from '@storybook/addon-actions';
|
|
|
|
import { Button } from './Button';
|
|
|
|
export default {
|
|
component: Button,
|
|
};
|
|
|
|
export const Text = {
|
|
render: ({ label, onClick }) => <Button label={label} onClick={onClick} />,
|
|
};
|
|
```
|