import { ComponentMeta, ComponentStory } from "@storybook/react";
import Label  from "../../components/Label";

export default {
  title: 'Texts/Label',
  component: Label,
  argTypes: {
    size: { control: 'select' },
    color: { control: 'select' },
    fontColor: { control: 'color' }
  }
} as ComponentMeta<typeof Label>;

const Template: ComponentStory<typeof Label> = (args) => <Label {...args}/>

export const Basic = Template.bind({})
Basic.args = { size: 'normal', allCaps: false }

export const AllCaps = Template.bind({})
AllCaps.args = { size: 'normal', allCaps: true, title: 'hello world!' }

export const Secondary = Template.bind({})
Secondary.args = { size: 'normal', color: 'secondary'  }

export const Tertiary = Template.bind({})
Tertiary.args = { size:'normal', color: 'tertiary' }

export const CustomFontColor = Template.bind({})
CustomFontColor.args = { size:'h1', fontColor: '#5517ac' }

export const CustomBackgroundColor = Template.bind({})
CustomBackgroundColor.args = { size:'h1', backgroundColor: '#5517ac' }
