@karmaniverous/hook-form-semantic
    Preparing search index...

    Interface HookFormCheckboxProps<T>

    interface HookFormCheckboxProps<T extends FieldValues> {
        as?: any;
        checkboxAs?: any;
        checkboxChecked?: boolean;
        checkboxClassName?: string;
        checkboxDefaultChecked?: boolean;
        checkboxDefaultIndeterminate?: boolean;
        checkboxDisabled?: boolean;
        checkboxFitted?: boolean;
        checkboxId?: string | number;
        checkboxIndeterminate?: boolean;
        checkboxLabel?: SemanticShorthandItem<HtmlLabelProps>;
        checkboxName?: string;
        checkboxOnChange?: (
            event: FormEvent<HTMLInputElement>,
            data: CheckboxProps,
        ) => void;
        checkboxOnClick?: (
            event: MouseEvent<HTMLInputElement>,
            data: CheckboxProps,
        ) => void;
        checkboxOnMouseDown?: (
            event: MouseEvent<HTMLInputElement>,
            data: CheckboxProps,
        ) => void;
        checkboxOnMouseUp?: (
            event: MouseEvent<HTMLInputElement>,
            data: CheckboxProps,
        ) => void;
        checkboxRadio?: boolean;
        checkboxReadOnly?: boolean;
        checkboxSlider?: boolean;
        checkboxTabIndex?: string | number;
        checkboxToggle?: boolean;
        checkboxType?: "checkbox" | "radio";
        checkboxValue?: string | number;
        checkLabel?: string;
        className?: string;
        content?: ReactNode;
        control?: any;
        hookControl?: Control<T, any, T>;
        hookDefaultValue?: PathValueImpl<T, Path<T>>;
        hookDisabled?: boolean;
        hookName: Path<T>;
        hookRules?: Omit<
            RegisterOptions<T, Path<T>>,
            "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs",
        >;
        hookShouldUnregister?: boolean;
        id?: string | number;
        inline?: boolean;
        label?: SemanticShorthandItem<HtmlLabelProps>;
        leftLabel?: string;
        required?: any;
        rightLabel?: string;
        type?: string;
        uncheckLabel?: string;
        width?: SemanticWIDTHS;
    }

    Type Parameters

    • T extends FieldValues

    Hierarchy

    • Omit<
          StrictFormFieldProps,
          | "children"
          | "checked"
          | "disabled"
          | "error"
          | "name"
          | "onBlur"
          | "onChange"
          | "ref"
          | "value",
      >
    • PrefixedPartial<Omit<ControllerProps<T>, "render">, "hook">
    • PrefixedPartial<StrictCheckboxProps, "checkbox">
      • HookFormCheckboxProps
    Index

    Properties

    as?: any

    An element type to render as (string or function).

    checkboxAs?: any
    checkboxChecked?: boolean
    checkboxClassName?: string
    checkboxDefaultChecked?: boolean
    checkboxDefaultIndeterminate?: boolean
    checkboxDisabled?: boolean
    checkboxFitted?: boolean
    checkboxId?: string | number
    checkboxIndeterminate?: boolean
    checkboxLabel?: SemanticShorthandItem<HtmlLabelProps>
    checkboxName?: string
    checkboxOnChange?: (
        event: FormEvent<HTMLInputElement>,
        data: CheckboxProps,
    ) => void
    checkboxOnClick?: (
        event: MouseEvent<HTMLInputElement>,
        data: CheckboxProps,
    ) => void
    checkboxOnMouseDown?: (
        event: MouseEvent<HTMLInputElement>,
        data: CheckboxProps,
    ) => void
    checkboxOnMouseUp?: (
        event: MouseEvent<HTMLInputElement>,
        data: CheckboxProps,
    ) => void
    checkboxRadio?: boolean
    checkboxReadOnly?: boolean
    checkboxSlider?: boolean
    checkboxTabIndex?: string | number
    checkboxToggle?: boolean
    checkboxType?: "checkbox" | "radio"
    checkboxValue?: string | number
    checkLabel?: string
    className?: string

    Additional classes.

    content?: ReactNode

    Shorthand for primary content.

    control?: any

    A form control component (i.e. Dropdown) or HTML tagName (i.e. 'input'). Extra FormField props are passed to the control component. Mutually exclusive with children.

    hookControl?: Control<T, any, T>
    hookDefaultValue?: PathValueImpl<T, Path<T>>
    hookDisabled?: boolean
    hookName: Path<T>
    hookRules?: Omit<
        RegisterOptions<T, Path<T>>,
        "disabled" | "valueAsNumber" | "valueAsDate" | "setValueAs",
    >
    hookShouldUnregister?: boolean
    id?: string | number

    The id of the control

    inline?: boolean

    A field can have its label next to instead of above it.

    label?: SemanticShorthandItem<HtmlLabelProps>

    Mutually exclusive with children.

    leftLabel?: string
    required?: any

    A field can show that input is mandatory. Requires a label.

    rightLabel?: string
    type?: string

    Passed to the control component (i.e. )

    uncheckLabel?: string
    width?: SemanticWIDTHS

    A field can specify its width in grid columns