Skip to content

RadioGroup ​

Overview ​

A radio group container built on Reka UI's RadioGroupRoot, providing keyboard navigation and v-model binding for a set of radio items.

Theme entry: RadioGroup

Props ​

NameTypeRequiredDefaultDescription
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
classimport('vue').HTMLAttributes['class']undefinedAdditional CSS classes to apply to the root element.
modelValuestring|number|boolean|objectundefinedThe controlled value of the checked radio item.
defaultValuestring|number|boolean|objectundefinedThe default value when uncontrolled.
disabledbooleanfalseWhen true, prevents interaction with all radio items.
loopbooleantrueWhen true, keyboard navigation loops from last item back to first.
orientationstringundefinedThe orientation of the radio group.
dirstringundefinedThe reading direction of the group.
asstring|objectundefinedThe element or component to render as.
asChildbooleanfalseWhen true, merges props onto the child element instead of rendering a wrapper.
namestringundefinedThe name of the group submitted with form data.
requiredbooleanfalseWhen true, the user must select a value before submitting the form.

Slots ​

default ​

Scoped slot.

Events ​

NameDescription
update:modelValueEmitted when the value changes.

Full event reference

Source ​

client/lib/controls/radio-group/RadioGroup.vue