<RadioGroup> — a single-select radio control, rendered from options.
This wrapper is convenience over the web components: it renders an <a-radio>
per option and manages the two declarative DOM concerns the elements
deliberately do not touch: the roving tabindex (so keyboard Tab
lands on the right option) and each radio's role. Selection itself lives
in <a-radio-group> off-DOM (it sets each radio's selected property), so the
elements never mutate the DOM; this wrapper just reflects the current value into
tabindex on re-render. (Hand-assembling raw <a-radio-group> / <a-radio>
also works — see the element docs — this wrapper is the ergonomic path.)
Controlled (value + onStateChange) or uncontrolled (defaultValue); either
way the wrapper holds the value so it can compute the roving tabindex.
<RadioGroup>— a single-select radio control, rendered fromoptions.This wrapper is convenience over the web components: it renders an
<a-radio>per option and manages the two declarative DOM concerns the elements deliberately do not touch: the rovingtabindex(so keyboard Tab lands on the right option) and each radio'srole. Selection itself lives in<a-radio-group>off-DOM (it sets each radio'sselectedproperty), so the elements never mutate the DOM; this wrapper just reflects the current value intotabindexon re-render. (Hand-assembling raw<a-radio-group>/<a-radio>also works — see the element docs — this wrapper is the ergonomic path.)Controlled (
value+onStateChange) or uncontrolled (defaultValue); either way the wrapper holds the value so it can compute the rovingtabindex.Requires
@antadesign/anta/elements(client-side only).