storybook/docs/snippets/react/button-story-click-handler-simple-docs.js.mdx
2020-08-11 01:11:41 +01:00

5 lines
119 B
Plaintext

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