Properties of the CheckboxControl React component.

interface CheckboxControlProps {
    checked: boolean;
    disabled?: boolean;
    id?: string;
    label: string;
    onChange: (checked: boolean) => void;
    size?: "small" | "medium";
    sx?: SxProps<Theme>;
}

Properties

checked: boolean

The current check state.

disabled?: boolean

Set to true to disable this control.

id?: string

The component id.

label: string

A text label to be displayed.

onChange: (checked: boolean) => void

Callback that is called when the checked state has changed.

Type declaration

    • (checked: boolean): void
    • Parameters

      • checked: boolean

        The new checked state.

      Returns void

size?: "small" | "medium"

The optional size, defaults to 'small'.

sx?: SxProps<Theme>

Optional sx props.