Skip to main content
A radio button component for selecting a single option from a group.

Import

Anatomy

The Radio component consists of two parts:
  • Radio.Root - The radio button control itself
  • Radio.Indicator - Visual indicator for the selected state
Radio buttons should typically be used within a RadioGroup component to manage the selection state.

Basic Usage

Key Features

  • Works seamlessly with RadioGroup
  • Accessible with proper ARIA attributes
  • Supports disabled and read-only states
  • Keyboard navigation support
  • Custom render props

Key Props

value

Type: any Required: true The unique identifying value of the radio in a group.

disabled

Type: boolean Whether the component should ignore user interaction.

readOnly

Type: boolean Whether the user should be unable to select the radio button.

required

Type: boolean Whether the user must choose a value before submitting a form.

inputRef

Type: React.Ref<HTMLInputElement> A ref to access the hidden input element.

Styling

Common Patterns

With Labels

Card-Style Radio Buttons

With Description