RadioGroup

Radio button group with managed selection, label, and keyboard navigation.

Example

Plan
Basic features
Advanced features
Custom solutions

Props

NameTypeDefaultRequiredDescription
labelstringRequiredGroup label text
descriptionstringNoHelper text for the group
errorstringNoError message
requiredbooleanNoMarks as required
hideLabelbooleanfalseNoVisually hides group label
namestringNoInput name (auto-generated if omitted)
valuestringNoControlled selected value
defaultValuestringNoInitial value (uncontrolled)
onChange(value: string) => voidNoCalled when selection changes
disabledbooleanfalseNoDisables all radios
orientation'horizontal' | 'vertical''vertical'NoLayout direction

Accessibility

  • role="radiogroup" with aria-labelledby
  • Arrow key navigation between options
  • Tab focuses group, arrows move selection
  • aria-invalid when error is present

Related Tokens

--radio-surface--radio-on-surface--radio-border--radio-checked--radio-gap--radio-group-label-font-weight--radio-label-font-weight