Components / Inputs

Radio native

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

A2UI basic
ChoicePicker
Children
none
Loading the renderer…
Radio rendered by the React renderer on Web
Web React
Radio rendered by the SwiftUI renderer on iOS
iOS SwiftUI
Radio rendered by the Compose renderer on Android
Android Compose
Radio rendered by the gpui renderer on Desktop
Desktop gpui

View exponential-ui-radio, painted by each native renderer.

orientation · horizontal
orientation · vertical
PropTypeDefaultDescription
labelstring–The group label.
namerequiredstring–The field's key in the submitted data.
optionsrequired[option]–The choices in order.
valuebindstring–The chosen value; bind it.
orientationhorizontal | vertical"vertical"Stacked or in a row.
checks[check]–Validation rules.
NameKind
on.changeevent: runs an action
Role
radiogroup
Semantics
radiogroup / radio
KeysAction
–Roving tab stop on the checked option
ArrowDownArrowRightnext option, selecting it (wraps)
ArrowUpArrowLeftprevious option
Recipe parts
Radio/rootRadio/itemRadio/dotRadio/labelRadio/items
Keyed by
orientation:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover

Themes · Write a theme