import Button from './Button';
import { action } from '@storybook/addon-actions';
import { Meta, Story } from '@storybook/addon-docs/blocks';

<Meta title='Button' />

export const rowData = {
  col1: 'a',
  col2: 2,
};

<Story name='story1'><Button label='Story 1' /></Story>

<Story name='second story'><Button label='Story 2' onClick={action('click')} /></Story>

<Story name='complex story'><div>
    <Button label='The Button' onClick={action('onClick')} />
    <br />
  </div></Story>