Skip to Content
ComponentsCheckbox

Checkbox

Multi-select checkbox group. Controlled via value: (string | number)[] and onChange.

Preview

Anatomy

import { Checkbox } from '@wire-ui/react' <Checkbox.Root value={selected} onChange={setSelected}> <Checkbox.Item value="option-a"> <Checkbox.Indicator>✓</Checkbox.Indicator> <Checkbox.Label>Option A</Checkbox.Label> </Checkbox.Item> </Checkbox.Root>

Root props

PropTypeDefaultDescription
value(string | number)[]Controlled selected values
defaultValue(string | number)[][]Initial selected values
onChange(value: (string | number)[]) => voidCalled when selection changes
disabledbooleanfalseDisables all items

Item props

PropTypeDescription
valuestring | numberThe value this item represents
disabledbooleanDisables this specific item

Indicator data attributes

AttributeValues
data-state"checked" / "unchecked"
data-disabledPresent when disabled
Last updated on

MIT License © 2026 wire-ui