storybook/docs/snippets/react/button-story-click-handler-simple-docs.js.mdx
2020-10-07 12:23:34 +08:00

5 lines
119 B
Plaintext

```js
// Button.stories.js
export const Text = ({ label, onClick }) => <Button label={label} onClick={onClick} />;
```