import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import Toggle from '../components/FormElements/Toggle/Toggle';

// More on default export: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
export default {
  title: 'Form elements/Toggle',
  component: Toggle,
  // More on argTypes: https://storybook.js.org/docs/react/api/argtypes
  argTypes: {
    variant: {defaultValue: 'default', control:{ type:"select", options:["default", "primary", "secondary", "dark"]}},
    size: {defaultValue: 'default', control:{ type:"select", options:["default", "small", "medium", "large"]}},
  },
} as ComponentMeta<typeof Toggle>;

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

export const BasicToggle = Template.bind({});
BasicToggle.args = {
  defaultChecked: false
};

