Components/Checkbox

Checkbox

Accessible checkbox with label, description, and indeterminate state support.

Installation

Examples

With label and description

Label and optional secondary text.

States

Checked, unchecked, indeterminate, and disabled.

API Reference

PropTypeDefaultDescription
checkedbooleanfalseControlled checked state.
onCheckedChange(v: boolean) => voidCalled when state changes.
disabledbooleanfalseDisables the checkbox.
indeterminatebooleanfalseShows a dash instead of a check.
labelReactNodeLabel rendered beside the checkbox.
descriptionReactNodeSecondary text below the label.