interface CheckboxFieldProps {
    className?: string;
    cols?: 1 | 2 | 4;
    errorText?: string;
    fill: "fill" | "outline";
    items: CheckboxFieldItemProps[];
    label?: string;
    labelWeight?: "bold" | "regular";
    name?: string;
    onChange?: ((value, name?) => void);
    value: string[];
}

Properties

className?: string

Custom class to give the html component

cols?: 1 | 2 | 4

number of cols to render

errorText?: string

error text to show below the component

fill: "fill" | "outline"

fill checkbox when checked

checkbox items to render

label?: string

Label to show for the input

labelWeight?: "bold" | "regular"

Configurable label weight

name?: string

field name

onChange?: ((value, name?) => void)

onChange event for field

Type declaration

    • (value, name?): void
    • onChange event for field

      Parameters

      • value: string[]
      • Optional name: string

      Returns void

value: string[]

checkbox field values

Generated using TypeDoc