Skip to content

Radio

Radio buttons are used to select one option from a set of mutually exclusive options. They are commonly used in forms and surveys where only one choice is allowed. Use the interactive previews below to explore the component’s states, alignments, and sizes.

Loading Code Block...

A simple medium radio button with a title label.

Loading Code Block...

Control the scale of the radio button using the `size` prop. Use the dropdown in the interactive demo below to toggle between `sm` and `md` sizes.

Loading Code Block...

Set the `alignment` prop to `right` or `left` to manage the position of the radio input relative to its label. Use the dropdown in the interactive demo below to toggle the alignment.

Loading Code Block...

Set the `disabled` prop to prevent user interaction. The interactive demo below demonstrates both unchecked and checked disabled states.

Loading Code Block...
Loading Code Block...

  • The radio input uses standard HTML <input type="radio"> ensuring native screen reader support.
  • Wrapping the input and label in a semantic container ensures the clickable area correctly maps to the label for users with motor impairments.
  • When disabled is true, the disabled attribute is passed directly to the underlying <input> element, correctly removing it from the tab order.
  • The title prop translates directly into the associated <label> tag text, providing proper accessible names. Keyboard focus uses a high-contrast ring outline.
  • Share the same name across radios in a group so assistive tech announces them as a single set and arrow keys move between options.