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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
disabled | boolean | false | No | Disables this card. The card is also disabled when the group is. |
value | string | — | Yes | Option value, passed to the inner radio. Stable, unique in the group, and the submitted value. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | The option's accessible name. Phrasing content only. |
description | Supporting detail, announced as the description. Phrasing content only. |
Slot props: default
None declared.
Slot props: description
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
blur | () => void | Blurs the inner radio. |
element | HTMLLabelElement | null | The `<label>` card root after mount, or `null` before mount. |
focus | (options?: FocusOptions) => void | Focuses the inner radio. A disabled radio does not take focus. |
inputElement | HTMLInputElement | null | The inner radio input after mount, or `null` before mount. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | root | Native <label> card root. Carries the selected and disabled state. |
data-part | label | Span holding the default slot. The input is named by it through aria-labelledby. |
data-part | description | Span holding the description slot, rendered only when the slot is provided. Joins the input's aria-describedby. |
data-state | checked | data-state="checked" on the root while the option is selected. Omitted otherwise. |
data-state | disabled | data-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
| Key | Action | Automated browser test |
|---|---|---|
Tab | One 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) |
ArrowDown | Moves 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) |
ArrowUp | Moves 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) |
Space | Selects 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) |
Enter | Submits 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.
| Category | Status | Evidence |
|---|---|---|
| Automated keyboard | Passed | Every declared key maps to a Chromium browser test that CI runs and requires to pass on every commit. |
| Manual interaction | Not reviewed | No review recorded. |
| Assistive technology | Not reviewed | No review recorded. |
Examples
None declared.