import React from 'react';

import { Button } from '../index';

// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
export default {
  title: 'Example/Button',
  component: Button,
  // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
  argTypes: {
    // backgroundColor: { control: 'color' },
  },
};

// More on component templates: https://storybook.js.org/docs/react/writing-stories/introduction#using-args
const Template = (args) => <Button {...args} />;

// More on args: https://storybook.js.org/docs/react/writing-stories/args
export const Default = Template.bind({});
Default.args = {
  text: 'Button',
};

export const Plain = Template.bind({});
Plain.args = {
  plain: true,
  text: 'Button',
};

export const Large = Template.bind({});
Large.args = {
  size: 'large',
  text: 'Button',
};

export const Small = Template.bind({});
Small.args = {
  size: 'small',
  text: 'Button',
};

export const Text = Template.bind({});
Text.args = {
  size: 'small',
  text: 'Text Button',
  type: 'text',
};

export const Disabled = Template.bind({});
Disabled.args = {
  text: 'Text Button',
  disabled: true,
};
