Skip to content

GhostRadioGroup reference ​

Package: @ghostvue/vue. Status: experimental (stability policy).

Headless native radio group root with roving focus, v-model, and form reset.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostRadioGroupElement"fieldset"NoRoot host. Non-fieldset hosts use `role="radiogroup"`.
defaultValuestring—NoInitial value when uncontrolled; omitted means none checked. Form reset restores this seed.
disabledbooleanfalseNoDisables the group.
invalidbooleanfalseNoSets `aria-invalid` on the root for Field.
modelValuestring—NoControlled selected value. Omit for uncontrolled use.
namestring—NoShared native `name`; generated when omitted.
orientationGhostRadioGroupOrientation"vertical"NoThemed layout (`data-orientation`); not keyboard behavior.
requiredbooleanfalseNoNative required on item inputs.

Emits ​

None declared.

Models ​

PropEventTypeDescription
modelValueupdate:modelValuestringv-model binding for `modelValue`.

Slots ​

NameDescription
defaultContainer content.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidExposed method `blur`.
elementHTMLElement | nullRoot element after mount; null before mount.
focus(options?: FocusOptions) => voidExposed method `focus`.

Parts and data attributes ​

AttributeValueDescription
data-partrootFieldset or radiogroup host for items.
data-stateinvalidField or validation error.
data-statedisabledWhole group disabled.
data-orientationhorizontal, verticalResolved orientation on the root. Always present.

CSS variables ​

None declared.

Accessibility ​

Role: radiogroup. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/radio/.

Required ARIA attributes: none.

Keyboard ​

None declared.

Verification ​

Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

radio-group/basic ​

Example source

Basic Headless

Headless radio group with labeled items.

Selected plan: starter

radio-group/field ​

Example source

Field wiring Headless

Group label, description, and error through GhostField.

Choose a channel before saving.

radio-group/form ​

Example source

Form reset Headless

Native submit and reset with a shared name.

Deploy region

radio-group/themed ​

Example source

Themed

Styled radio dots from @ghostvue/themes.