Radio Group

Single-select with full-row targets. Selected, hover and focus indicators ride shared motion layers across items — the dot springs in and the label's variable weight steps up on selection.

Usage

Density

RadioGroup.Root props

Inherits bits-ui RadioGroup.Root props via spread. Tracks selected/hover/focus elements internally and drives three shared motion layers over the sibling list.

PropTypeDescription
string (bindable)Selected item value. Two-way bindable.
'horizontal' | 'vertical'Layout axis and roving-focus direction.
booleanRoving focus wraps at the ends when true.
booleanDisables every item in the group.
HTMLDivElement | nullTwo-way-bindable element reference.
stringMerged onto the root via tailwind-merge.

RadioGroup.Item props

The item is the full-row selectable surface. Children render as the label; the glyph is injected automatically.

PropTypeDescription
stringItem value reported when selected.
SnippetRow label — rendered beside the radio glyph.
booleanDisables this item only.
HTMLButtonElement | nullTwo-way-bindable element reference.
stringMerged onto the item via tailwind-merge.