Menu
Esc
DocsGitHub TR

Components

Radio

Picks exactly one option from a short list.

Open in Figma

Playground

Figma variant

🕹 State=Default
👕 Size=Medium
Checked=True
with Text=True
Error=False
Disabled=False

Variants

Sizes

States

Hover darkens the border to primary, keyboard focus adds the focus ring, error turns the border red, disabled flattens the control.

In a form

ChoiceGroup is the Form Checkbox / Radio / Switch pattern: a label, the options 16px apart, and a hint or error.

Plan
Plan

Tokens

StateFillBorderMark
Off--color-surface-level-1--color-foreground-medium-emphasis
Hover--color-surface-level-1--color-primary
On--color-primary—--color-on-primary + --shadow-depth-md
Error--color-surface-level-1--color-error
Disabled--color-surface-level-3--color-surface-level-4--color-foreground-low-emphasis

Notes from Figma

  • Figma has no focus state for Radio; code uses the Checkbox focus ring so keyboard users can see focus.
  • In the error variant Figma uses Label Type=Hint (a neutral hint); code shows an error Hint, like Checkbox.

Figma to code

FigmaReact
👕 Size = Medium / Smallsize='medium' / 'small'
Checked = Truechecked
with Text = Truelabel="…"
Error / Disablederror / disabled
Fluid = Truefluid
Form Spacing = Truespacing
Form Radio Button<ChoiceGroup label hint>