On this page

Radio group

When to use Radio group, when to use something else, and tokens.

Draft. Ported from the shadcn-vue Radio group and restyled with Beehexa tokens. Not yet approved; the API may still change.

A set of options where people choose exactly one.

When to use

  • Two to five options, all visible, where exactly one applies.
  • A choice people should compare before picking.

When not to use

Tokens

Part Tokens
Circle 16 px (size.icon.default), radius.full, edge color.border.bold on color.surface
Checked fill color.background.primary with an 8 px dot (radio.size.dot) in color.icon.inverse
Focus the Button focus ring (border.width.focused, color.border.focus, state.focus.offset)
Gap space.stack between options
Disabled the disabled colours, never opacity