formCheckboxField.stories.mdx

PHOTO EMBED

Mon Mar 25 2024 17:15:11 GMT+0000 (Coordinated Universal Time)

Saved by @rafal_rydz

import {FormCheckboxField} from "ui";
import {ArgsTable, Meta, Story} from "@storybook/addon-docs";

<Meta
    title="Components/Inputs/FormCheckboxField/old"
    component={FormCheckboxField}
/>

export const Template = (args) => <FormCheckboxField {...args} />;

# FormCheckboxField

This component renders an FormCheckboxField.

## Props

<ArgsTable story="Default"/>

## Examples

<Story
    name="Default"
    args={{
        id: "example",
        label: "Label",
        action: () => {
        },
        defaultState: false,
        required: true,
        disabled: false,
        caption: "",
    }}
>
    {Template.bind({})}
</Story>
content_copyCOPY