Radio
One choice from two to five options, all visible, each with a short description.
When to use
Section titled “When to use”- Use it for choices people should compare: where a task runs, how a provider signs in, a billing plan.
- For six or more options, use
Select. For short one-word options in a toolbar, useSegmentedControl.
What the consumer provides
Section titled “What the consumer provides”- A
fieldsetwith alegendthat asks the question (“Where should this run?”). - Options with a
labeland an optionaldescription. When there is a sensible default, put the recommended option first and check it. - An
errorunder the group when nothing is chosen on submit.
Behaviour
Section titled “Behaviour”- Each option is a 20px circle with a
border-strongedge. When checked, it becomes a 6pxemerald-deepring with asurface-100centre, in 120ms. - Arrow keys move the choice inside the group. Tab leaves the group. The focus ring sits on the circle.
- Disabled options stay visible. The description says why they are off.
Tokens
Section titled “Tokens”surface-100, border-strong, emerald-deep, focus, danger, ink-disabled, radius-full.
Mantine
Section titled “Mantine”<Radio.Group label error> with <Radio value label description />. For large tile options, use Card in select mode instead.