Toggle Sidebar B
header.lightDarkMode D

Radio Group

One-of-many selection. Pair RadioGroup with RadioGroupItem entries; bind selected value with v-model.

Default

Three options arranged vertically.

Horizontal

Lay items horizontally with flex.

Disabled

Pass disabled on the group to disable every item.

API Reference

Props, events, and slots for each sub-component.

RadioGroup

Props

PropTypeDefaultDescription
modelValuestringSelected value. Supports v-model.
defaultValuestringInitial value when v-model is not used.
disabledbooleanfalseDisable the entire group.

Events

EventDescription
update:modelValueFires when the selected value changes. Enables v-model.

RadioGroupItem

Props

PropTypeDefaultDescription
valuestringUnique value tracked by the group.
idstringMatch with a Label for click targets.
disabledbooleanfalseDisable this item.

Accessibility

Keyboard shortcuts and ARIA behavior.

Keyboard

ShortcutDescription
Moves selection to the previous item.
Moves selection to the next item.
Moves selection to the previous item.
Moves selection to the next item.
SpaceSelects the focused item.
TabMoves focus into or out of the group.
  • Uses a roving tabindex; only the selected (or first) radio is tabbable.
  • Applies radiogroup and radio roles with aria-checked on each item.