Forms

Checkbox

Collect an independent choice in a form, such as accepting terms or granting a permission.

Basic usage

Use Checkbox.Label to name the control and Field.Description to explain the requirement. For partial selection, pass checked="indeterminate".

Required to create an account.

API

Key props and defaults.

PropValues and behaviorDefault
checkedboolean | indeterminate—
defaultCheckedboolean | indeterminatefalse
onCheckedChange(details) => void—
requiredbooleanfalse
readOnlybooleanfalse