Skip to content

Checkbox

A checkbox component built on Base UI.

Installation

First install? Complete the one-time host setup.

Live preview

A single on/off toggle for a boolean choice like accepting terms or enabling a setting.

Loading preview…

Props

PropTypeDefaultDescription
checkedbooleanControlled checked state.
defaultCheckedbooleanInitial state when uncontrolled.
indeterminatebooleanfalseRenders the dash glyph for a mixed selection.
onCheckedChange(checked: boolean) => voidFires when the user toggles the box.
disabledbooleanfalseDims the box and blocks interaction.