Checkbox

Form Controls
Local guide ↗ import { Checkbox } from "bits-ui"

Three states

Bind checked and indeterminate independently; data-state exposes every visual state

indeterminate

Parent and children

A derived parent state controls a Checkbox.Group without duplicating child state

2/3

Required form value

name creates the hidden input and value controls the submitted payload

Required before the release can be submitted.

Submit to inspect the form value

checked and indeterminate are separate bindable booleans. The root reports all three visual states through data-state, while its children snippet receives both values for icon rendering.

Passing name renders a hidden checkbox input; value replaces its default "on" payload, and required is forwarded to that hidden input. A Checkbox.Group propagates its name, required, disabled, and readonly settings to descendant roots and submits one same-named hidden input per selected value.