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
- More than five options. Use a Select.
- Several options at once. Use Checkboxes.
- Switching a view. Use a Segmented control.
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 |