Forms/Radio

Radio

Accessible radio group for selecting a single option from a list. Supports descriptions, disabled states, and keyboard navigation.

import { RadioGroup, RadioItem } from "@animui/ui"

Basic

With descriptions

RadioGroup Props

PropTypeDefaultDescription
valuestringThe currently selected value.
onChange(value: string) => voidCalled when selection changes.
namestringHTML name attribute — groups radio inputs for form submission.
disabledbooleanfalseDisables the entire group.

RadioItem Props

PropTypeDefaultDescription
valuestringThe value this item represents.
labelstringVisible label text.
descriptionstringSecondary descriptive text below the label.
disabledbooleanfalseDisables this individual item.

Accessibility

  • Native <input type="radio"> elements under the hood — works with form submission.
  • Arrow keys navigate between options within the group.
  • Descriptions are associated via aria-describedby.
© 2026 Steal Shadow. MIT License.Report an issue