import { ComponentMeta, ComponentStory } from "@storybook/react"; import React from "react"; import { Checkbox, CheckboxGroup } from ":/components/Forms/Checkbox/index"; export default { title: "Components/Forms/Checkbox", component: Checkbox, } as ComponentMeta; const Template: ComponentStory = (args) => ( ); export const Default = Template.bind({}); Default.args = {}; export const Checked = Template.bind({}); Checked.args = { checked: true, }; export const Indeterminate = Template.bind({}); Indeterminate.args = { indeterminate: true, }; export const WithLabel = Template.bind({}); WithLabel.args = { label: "Label", }; export const LabelChecked = Template.bind({}); LabelChecked.args = { checked: true, label: "Label", }; export const WithTexts = Template.bind({}); WithTexts.args = { checked: true, label: "Label", text: "This is an optional text", }; export const Disabled = Template.bind({}); Disabled.args = { disabled: true, label: "Label", }; export const DisabledChecked = Template.bind({}); DisabledChecked.args = { checked: true, disabled: true, label: "Label", }; export const Error = Template.bind({}); Error.args = { checked: true, label: "Label", text: "This is an optional text", state: "error", }; export const Success = Template.bind({}); Success.args = { checked: true, label: "Label", text: "This is an optional text", state: "success", }; export const Group = () => (
Your offices
); export const GroupError = () => (
Your offices
); export const GroupSuccess = () => (
Your offices
);