Skip to content

GhostCard reference ​

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

Composable surface with header, content, and footer parts. Optional spotlight composes useGhostInteractiveSurface on data-interactive-state.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostCardElement"article"NoRoot element. Use `a` only when the whole card navigates without nested controls.
effects'spotlight'[]"[]"NoAmbient spotlight recipes. Empty list keeps the card inert.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultPrimary body; rendered in data-part="content".
footerOptional bottom region for actions on static roots.
headerOptional top region.

Slot props: default ​

None declared.

None declared.

Slot props: header ​

None declared.

Exposed members ​

NameTypeDescription
elementHTMLElement | nullRoot element after mount; null before mount.

Parts and data attributes ​

AttributeValueDescription
data-partrootCard surface host.
data-partheaderHeader slot wrapper.
data-partcontentDefault slot wrapper.
data-partfooterFooter slot wrapper.
data-partglowDecorative spotlight layer when effects includes spotlight.
data-stateoffSpotlight inactive (empty effects, reduced motion, or coarse pointer).
data-stateidleSpotlight capable but pointer outside the host.
data-statetrackingPointer over the host; glow follows CSS variables.

CSS variables ​

None declared.

Accessibility ​

Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/practices/names-and-descriptions/.

Required ARIA attributes: none.

Keyboard ​

KeyActionAutomated browser test
TabMoves through focusable descendants on static roots. `a`/`button` roots are a single tab stop.Not reviewed

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 ​

card/basic ​

Example source

Card basics Headless

Header, content, and footer parts on a surface.

Quarterly report

Revenue grew 12% compared to the previous quarter.
Updated 2h ago

card/actions ​

Example source

Card with actions Headless

Static root and footer buttons.

Notifications

You have no unread notifications.

Example source

Navigational card Headless

Whole-card link without nested interactives.

card/interactive ​

Example source

Spotlight card Headless

Ambient pointer tracking on the card root.

Spotlight

Move the pointer to preview ambient tracking on this surface.

card/composable ​

Example source

Composable card Headless

useGhostCard bindings on a custom host.

Custom host
Composable root bindings without the SFC.