Skip to content

GhostRadioCard reference ​

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

Card-shaped member of GhostRadioGroup. A native label root wraps a GhostRadioGroupItem, so the whole card selects the option, and the root mirrors the selected and disabled state for styling.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
disabledbooleanfalseNoDisables this card. The card is also disabled when the group is.
valuestring—YesOption value, passed to the inner radio. Stable, unique in the group, and the submitted value.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultThe option's accessible name. Phrasing content only.
descriptionSupporting detail, announced as the description. Phrasing content only.

Slot props: default ​

None declared.

Slot props: description ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidBlurs the inner radio.
elementHTMLLabelElement | nullThe `<label>` card root after mount, or `null` before mount.
focus(options?: FocusOptions) => voidFocuses the inner radio. A disabled radio does not take focus.
inputElementHTMLInputElement | nullThe inner radio input after mount, or `null` before mount.

Parts and data attributes ​

AttributeValueDescription
data-partrootNative <label> card root. Carries the selected and disabled state.
data-partlabelSpan holding the default slot. The input is named by it through aria-labelledby.
data-partdescriptionSpan holding the description slot, rendered only when the slot is provided. Joins the input's aria-describedby.
data-statecheckeddata-state="checked" on the root while the option is selected. Omitted otherwise.
data-statedisableddata-disabled on the root when the card or the group is disabled. A <fieldset disabled> ancestor does not set it; match :has(> input:disabled) for that case.

CSS variables ​

None declared.

Accessibility ​

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

Required ARIA attributes: none.

Keyboard ​

KeyActionAutomated browser test
TabOne tab stop for the group: the selected card's radio, else the native entry point.choice cards › room chooser selects from any part of a card and keeps radio keyboard behavior (@ghostvue/vue)
ArrowDownMoves to the next enabled card and selects it (native radio group).choice cards › room chooser selects from any part of a card and keeps radio keyboard behavior (@ghostvue/vue)
ArrowUpMoves to the previous enabled card and selects it (native radio group).choice cards › room chooser selects from any part of a card and keeps radio keyboard behavior (@ghostvue/vue)
SpaceSelects the focused card when it is not selected.choice cards › room chooser selects from any part of a card and keeps radio keyboard behavior (@ghostvue/vue)
EnterSubmits the owning form when it has one (native). Does not change the selection.choice cards › room chooser selects from any part of a card and keeps radio keyboard behavior (@ghostvue/vue)

Verification ​

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

CategoryStatusEvidence
Automated keyboardPassedEvery declared key maps to a Chromium browser test that CI runs and requires to pass on every commit.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

None declared.