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
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
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

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2