Checkbox

Inputs & Controls

macOS square checkmark box with baseline stability.

Installation

$npx shadcn-macos@latest add checkbox

Examples

Props

<Checkbox />
PropTypeDefaultDescription
checkedbooleanControlled checked state.
defaultCheckedbooleanfalseInitial checked state when uncontrolled.
onCheckedChange(checked: boolean) => voidCallback fired when the checkbox state toggles.
labelReact.ReactNodeLabel content displayed next to the checkbox box.
descriptionstringSecondary helper text rendered beneath the main label.
disabledbooleanfalseWhether the checkbox is disabled.
classNamestringCustom CSS classes.