Skip to content
Playground

Checkbox

Binary and indeterminate selection built on Base UI.

Binary and indeterminate selection built on Base UI. Unchecked controls use a semantic input border so their shape remains visible across light and dark surfaces.

Backed by Base UI Checkbox for upstream behavior and configuration. Zenos owns the public API, styling, and composition shown on this page.

TSX
import { Checkbox, Label, Stack } from "@zentara-co/zenos-ui";

Use size="sm", size="md", or size="lg" for 32px, 40px, or 48px hit targets. The visible boxes scale to 16px, 20px, and 24px.

Checkbox supports native required, disabled, and invalid semantics. Disabled controls cannot be changed or submitted.

Use the indeterminate state for a parent choice when only some child choices are selected.

Use the compound API when the default check and dash marks do not fit the surrounding interface.

Checkbox.Root
Checkbox.Indicator

API

PropTypeDefaultDescription
checked boolean | indeterminate — Controlled checked state.
defaultChecked boolean | "indeterminate" — Initial uncontrolled checked state.
indeterminate / defaultIndeterminate boolean false Controlled or initial mixed state aliases.
onCheckedChange (checked) => void — Runs when state changes.
size sm | md | lg md 32px, 40px, or 48px hit target.
disabled / required boolean false Native form semantics.
name / value string — Native form submission metadata.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

Associate every checkbox with a visible Label using matching id and htmlFor values, or provide an accessible name directly. Space toggles a focused checkbox. The indeterminate state is announced as mixed, while disabled, required, and aria-invalid preserve their native or Base UI semantics.