Default

Pick one
<RadioGroup label="Pick one">
  <Radio name="pick" value="react" label="React" />
  <Radio name="pick" value="svelte" label="Svelte" />
  <Radio name="pick" value="vue" label="Vue" checked />
</RadioGroup>

With description

Subscription plan

You can change this later in your account settings

Up to 3 projects

Unlimited projects

Per-seat pricing

<RadioGroup label="Subscription plan" description="Change anytime">
  <Radio name="plan" value="free" label="Free" description="Up to 3 projects" />
  <Radio name="plan" value="pro" label="Pro" description="Unlimited projects" checked />
  <Radio name="plan" value="team" label="Team" description="Per-seat pricing" />
</RadioGroup>

With error

Required choice

Please select an option

<RadioGroup label="Required choice" error="Please select an option">
  <Radio name="req" value="a" label="Option A" />
  <Radio name="req" value="b" label="Option B" />
</RadioGroup>

Horizontal orientation

Size
<RadioGroup label="Size" orientation="horizontal">
  <Radio name="size" value="sm" label="Small" />
  <Radio name="size" value="md" label="Medium" checked />
  <Radio name="size" value="lg" label="Large" />
</RadioGroup>

Color

<Radio name="colors" value="violet" label="violet" color="violet" checked />
<Radio name="colors" value="blue"   label="blue"   color="blue" />
<Radio name="colors" value="green"  label="green"  color="green" />

States

<Radio name="s" value="a" label="Default" />
<Radio name="s" value="b" label="Checked" checked />
<Radio name="s" value="c" label="Disabled" disabled />
<Radio name="s" value="d" label="Disabled checked" disabled checked />

RadioGroup props

PropTypeDefaultDescription
labelstringAccessible group label
descriptionstringHelper text below the label
errorstringError message; applies error styling to all items
orientation'horizontal'|'vertical''vertical'Layout direction
size'xs'|'sm'|'md'|'lg'|'xl'Controls group label font size

Radio props

PropTypeDefaultDescription
labelchildrenClickable label beside the radio button
descriptionchildrenHelper text below the label
errorchildren|booleanError message or true for styles only
checkedbooleanSSR selected state
disabledbooleanPrevents interaction
colorUiColorSelected fill color
size'xs'|'sm'|'md'|'lg'|'xl'Radio button size
namestringGroups radio buttons into a single-choice set
valuestringValue submitted when selected