UI Siêu Ngon

Checkbox

Binary and three-state selection input with optional label. Supports indeterminate state for select-all patterns.

Playground
label
size
checked
disabled
rounded
<Checkbox/>

Basic

Indeterminate (Select All)

Use indeterminate to represent a partially selected group.

Sizes

Disabled

API

PropertyTypeDefaultDescription
labelReactNodeLabel rendered next to the checkbox
checkedbooleanfalseControlled checked state
indeterminatebooleanfalseShow a dash (−) for partially selected state
size"sm" | "md" | "lg""md"Size preset
disabledbooleanfalseDisable the checkbox
onChange(e: ChangeEvent) => voidChange handler