Skip to content

GhostInteractiveSurface reference ​

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

Headless pointer-reactive surface. useGhostInteractiveSurface owns rAF-batched CSS variable writes, cached layout, and off/idle/tracking; GhostInteractiveSurface is the thin unstyled element with a decorative glow layer. Themed visual tokens live on @ghostvue/themes. v1 is spotlight only.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
asInteractiveSurfaceElement"div"NoRendered root element. Choose the tag that is valid in the parent context.
effects'spotlight'[]"["spotlight"]"NoRecipes advertised on data-interactive. v1 supports spotlight only. An empty list is an explicit off.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultSurface content. The glow layer is rendered by the component, not this slot.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
elementHTMLElement | nullThe root element after mount; null before mount and after unmount.

Parts and data attributes ​

AttributeValueDescription
data-partrootThe element selected by as. Receives data-interactive, data-state, and --ghost-pointer-* variables.
data-partglowDecorative spotlight overlay. aria-hidden. Not a public slot.
data-stateoffReduced motion, coarse pointer, empty effects, or unmounted. No listeners.
data-stateidleCapable of tracking. At rest; glow opacity is 0.
data-statetrackingPointer is over the host. Glow follows --ghost-pointer-x/y.

CSS variables ​

NameDescription
--ghost-pointer-xPointer x in CSS pixels, written imperatively on the host.
--ghost-pointer-yPointer y in CSS pixels, written imperatively on the host.
--ghost-pointer-nxUnitless pointer x from -0.5 to 0.5.
--ghost-pointer-nyUnitless pointer y from -0.5 to 0.5.

Accessibility ​

Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/practices/hiding-semantics/.

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 ​

interactive-surface/composable ​

Example source

Composable Headless

Spotlight tracking on a native host with a glow layer.

Quarterly report

Move the pointer across this card.