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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostCardElement | "article" | No | Root element. Use `a` only when the whole card navigates without nested controls. |
effects | 'spotlight'[] | "[]" | No | Ambient spotlight recipes. Empty list keeps the card inert. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Primary body; rendered in data-part="content". |
footer | Optional bottom region for actions on static roots. |
header | Optional top region. |
Slot props: default
None declared.
Slot props: footer
None declared.
Slot props: header
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
element | HTMLElement | null | Root element after mount; null before mount. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | root | Card surface host. |
data-part | header | Header slot wrapper. |
data-part | content | Default slot wrapper. |
data-part | footer | Footer slot wrapper. |
data-part | glow | Decorative spotlight layer when effects includes spotlight. |
data-state | off | Spotlight inactive (empty effects, reduced motion, or coarse pointer). |
data-state | idle | Spotlight capable but pointer outside the host. |
data-state | tracking | Pointer 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
| Key | Action | Automated browser test |
|---|---|---|
Tab | Moves 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.
| Category | Status | Evidence |
|---|---|---|
| Automated keyboard | Not reviewed | No declared key is mapped to a browser test yet. |
| Manual interaction | Not reviewed | No review recorded. |
| Assistive technology | Not reviewed | No review recorded. |
Examples
card/basic
Header, content, and footer parts on a surface.
card/actions
Static root and footer buttons.
card/link
Whole-card link without nested interactives.
card/interactive
Ambient pointer tracking on the card root.
card/composable
useGhostCard bindings on a custom host.