Skip to content

Inputs

Radio

Also calledradio buttonradio groupsingle-choice option

A set of mutually exclusive choices: choosing one radio button deselects the others in the same group.

How people describe it

  • “round choices where only one can be selected”
  • “little circles with a dot in the chosen one”
  • “picking one option clears the other circle”

Good for

  • Choosing one delivery method
  • Selecting one billing interval

Don’t mix it up with

  • Allows independent selections; several boxes can be checked at once.

What your library calls it

LIBRARYCALLS IT
shadcn/uiRadio Group

Accessibility checklist

  • Group options using fieldset and legend
  • Use one shared name and a visible label for every radio
  • Preserve native keyboard behavior and visible focus

Try it

Delivery speed

Only one choice can be picked. Arrow keys move between options.

Prompt

Add a radio group with labeled choices and one selection at a time.

~17 estimated prompt tokensDetailed: ~56 estimated prompt tokens

Rough estimate for prompt text only; actual counts vary by model and context.

<fieldset>
  <legend>Delivery method</legend>
  <label style="display:flex; align-items:center; gap:8px; min-height:44px">
    <input type="radio" name="delivery" value="standard" checked>
    Standard delivery
  </label>
  <label style="display:flex; align-items:center; gap:8px; min-height:44px">
    <input type="radio" name="delivery" value="express">
    Express delivery
  </label>
</fieldset>

Used in

Explore website blueprints that use this component.