Ask Natuna

Ask about the design system

Hi, I am Natuna.

Ask me about the design system: components, tokens, statuses, and how to use them.

Natuna can be wrong. The docs are the source of truth.

Skip to content
  • IntroductionPage
  • Ask NatunaAsk about the design systemPage
  • FoundationColor, type, number, effectPage
  • Components overviewPage
  • ThemesLight and dark modePage
  • NamingProperty and page namesPage
  • Privacy statementPage
  • Text-safe stepsFirst AA and AAA step per color rampSection
  • AccessibilityWCAG 2.2 AAA rulesSection
  • Dark modeThemesSection
  • Using it todayFigma file and React codeSection
  • Component statusDesign status and In ReactSection

Arrow keys to move, Enter to open, Esc to close.

Radio Button

A single option that belongs to a set where only one can be chosen.

Status
ReadyBuild day 1 of 21
Code
In React
Role
Form

Usage

This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.

Pastes as editable layers. Shadows are not exported.

import { useState } from "react";
import { RadioButton } from "@/ui";

export default function RadioDemo() {
  const [term, setTerm] = useState<string>("15");

  return (
    <div role="radiogroup" aria-label="Loan term">
      {["10", "15"].map((years) => (
        <RadioButton
          key={years}
          size="md"
          name="demo-term"
          value={years}
          label={`${years} years`}
          checked={term === years}
          onChange={() => setTerm(years)}
        />
      ))}
    </div>
  );
}

Variants and states

Every specimen is the real component from src/ui, held in one state.

size sm16px
size md20px
size lg24px
Errorerror replaces hint

Choose a term.

Choose a term.

Disablednative disabled

Pastes as editable layers. Shadows are not exported.

Props

label
string · default none
Required visible label, connected to the radio button.
hint
string · default none
Helper text under the label.
error
string · default none
Shows the error look and replaces the hint. The message is linked with aria-describedby.
size
"sm" | "md" | "lg" · default "sm"
Circle and text size: 16px, 20px, or 24px.
className
string · default ""
Extra classes for the wrapper.
...rest
InputHTMLAttributes · default none
Every other native input attribute, such as name, value, checked, defaultChecked, onChange, and disabled. Not id or type.

Figma to code

Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.

💡 Selection
checked
Unselected and Selected are the native checked state.
📐 Size
size
sm, md, or lg.
🎯 State
error, disabled
Error is the error prop and disabled is the native attribute. Hover and focus come from the browser at runtime.
🖊 Show Label, 🖍 Label
label
The label is always shown, because a radio button without a label has no name.
🩹 Show Helper Text, Helper Text
hint, error
hint is the help line. error replaces it while it is set.

Accessibility

What the code in src/ui does today, and what it leaves to you.

Keyboard

  • A native radio input: share a name and the arrow keys move between options, while Tab enters and leaves the group.
  • A disabled option uses the native disabled attribute, so it is skipped.
  • The component draws its own focus ring: 2px in the border/focus role.

Screen readers

  • The label is linked with for and a generated id, so it is the accessible name. Clicking the label selects the option.
  • The hint, or the error when there is one, is linked with aria-describedby and read after the name.
  • The error is linked with aria-describedby and read after the name.

What you still need to do

  • Give every option in a set the same name, and wrap the set in a fieldset with a legend or a role="radiogroup" with a label.
  • This is a single option. Grouping and exclusivity belong to the Radio Group.

When to use

Lives inside a radio group. A radio button on its own cannot be unselected.

Do and don't

Do

  • Make the label clickable along with the circle.
  • Keep the tap area at least 44px tall.

Don't

  • Use a single radio button for a yes/no setting: use a checkbox or toggle.
  • Style it so it looks like a checkbox.

4 of 16 other atoms, same role and ready ones first.

See all components

Status reflects the component tracker snapshot of 29 October 2026.