An on, off or mixed choice. Renders a hidden native checkbox so it submits, validates and resets with the form.

import Checkbox from "@radui/ui/Checkbox"
Example
React
"use client" import Checkbox from "@radui/ui/Checkbox" const CheckboxExample = () => { return ( <div className="flex flex-col gap-3"> <div className="flex items-center gap-2"> <Checkbox.Root id="terms"> <Checkbox.Indicator /> </Checkbox.Root> <label htmlFor="terms">Accept terms and conditions</label> </div> <div className="flex items-center gap-2"> <Checkbox.Root id="newsletter"> <Checkbox.Indicator /> </Checkbox.Root> <label htmlFor="newsletter">Subscribe to newsletter</label> </div> <div className="flex items-center gap-2"> <Checkbox.Root id="disabled" disabled> <Checkbox.Indicator /> </Checkbox.Root> <label htmlFor="disabled">Disabled option</label> </div> </div> ) } export default CheckboxExample
  • Checked, unchecked and indeterminate states, controlled or uncontrolled
  • Renders a hidden native checkbox: submits under name, honours required, resets with the form
  • uncheckedValue submits a value while unchecked; form targets a form elsewhere on the page
  • Space toggles it; the state is announced through aria-checked
  • Works inside Field.Root without extra wiring

Import all parts of the component and piece them together.

React
import Checkbox from "@radui/ui/Checkbox" export default () => { return ( <Checkbox.Root> <Checkbox.Indicator /> </Checkbox.Root> ) }

The root checkbox element.

PropTypeDefault
checked
booleanfalse
defaultChecked
booleanfalse
disabled
booleanfalse
required
booleanfalse
onCheckedChange
function—
color
string""
size
string""
variant
string""
customRootClass
string""
readOnly
booleanfalse
indeterminate
booleanfalse
uncheckedValue
string—
form
string—
inputRef
Ref<HTMLInputElement>—

Renders the checkmark icon when the checkbox is checked.

PropTypeDefault
className
string""
forceMount
booleanfalse
ShortcutDescription
Tab

Moves focus to the checkbox.

Space

Toggles between checked and unchecked states.

ReferenceWhat Rad UI follows
Checkbox pattern

Uses checkbox semantics with aria-checked to expose checked, unchecked, or mixed state.