Skip to Content
ComponentsRadio

Radio

Single-selection radio group. Controlled via value and onChange. Items share a name attribute for native form semantics.

Preview

Anatomy

import { Radio } from '@wire-ui/react' <Radio.Root value={selected} onChange={setSelected} name="options"> <Radio.Item value="a"> <Radio.Indicator /> <Radio.Label>Option A</Radio.Label> </Radio.Item> <Radio.Item value="b"> <Radio.Indicator /> <Radio.Label>Option B</Radio.Label> </Radio.Item> </Radio.Root>

Root props

PropTypeDefaultDescription
valuestring | numberControlled selected value
defaultValuestring | numberInitial selected value
onChange(value: string | number) => voidCalled when selection changes
namestringauto-generatedShared name attribute for all radio inputs
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