Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 483 Bytes

button-story-click-handler-simple-docs.js.mdx

File metadata and controls

20 lines (15 loc) · 483 Bytes
// Button.stories.js|jsx|ts|tsx

import React from 'react';

import { action } from '@storybook/addon-actions';

import { Button } from './Button';

export default {
  /* 👇 The title prop is optional.
  * See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
  * to learn how to generate automatic titles
  */
  title: 'Button',
  component: Button,
};

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