Skip to content

Radio

A labelled group of radio options choosing one value; bind value.

Group: Inputs · Kind: native

example
Plan
orientation · horizontal
Plan
orientation · vertical
Plan

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-radio on Web
exponential-ui-radio on iOS
exponential-ui-radio on Android
exponential-ui-radio on Desktop
Prop Type Required Bindable Description
label string – – The group label.
name string yes – The field’s key in the submitted data.
options [option] yes – The choices in order.
value string – yes The chosen value; bind it.
orientation horizontal | vertical – – Stacked or in a row. Default "vertical".
checks [check] – – Validation rules.
  • on.change: runs an action

None.

none

The basic catalog’s ChoicePicker renders as Radio.

A native component: every renderer paints it directly.

Role: radiogroup

radiogroup / radio

Keys Action
– Roving tab stop on the checked option
ArrowDown ArrowRight next option, selecting it (wraps)
ArrowUp ArrowLeft previous option

Recipe parts: Radio/root Radio/item Radio/dot Radio/label Radio/items

Keyed by: orientation :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

Form · FieldGroup · FormActions · Input · Textarea · NumberField · Checkbox · ChoiceTiles