Flab UIv0.0.2
MobileA2UI

Checkbox

A checkbox with checked, unchecked and indeterminate states, on Base UI. The box fills with the accent green when checked; the data-state attributes carry the styling so the visual always matches the real control state.

States

<Checkbox aria-label="Unchecked" /><Checkbox aria-label="Checked" defaultChecked /><Checkbox aria-label="Indeterminate" indeterminate /><Checkbox aria-label="Disabled" disabled />

With a label

<label className="flex items-center gap-2">  <Checkbox /> Email me product updates</label>

Props

PropTypeDefaultNotes
checked / defaultCheckedboolean—Controlled or initial state.
onCheckedChange(checked) => void—Called on toggle.
indeterminatebooleanfalseRenders the mixed state.
disabledboolean—Blocks interaction.
name / value / required——Standard form wiring.