Quarterly report
Move the pointer across this card.
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.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | InteractiveSurfaceElement | "div" | No | Rendered root element. Choose the tag that is valid in the parent context. |
effects | 'spotlight'[] | "["spotlight"]" | No | Recipes advertised on data-interactive. v1 supports spotlight only. An empty list is an explicit off. |
None declared.
None declared.
| Name | Description |
|---|---|
default | Surface content. The glow layer is rendered by the component, not this slot. |
None declared.
| Name | Type | Description |
|---|---|---|
element | HTMLElement | null | The root element after mount; null before mount and after unmount. |
| Attribute | Value | Description |
|---|---|---|
data-part | root | The element selected by as. Receives data-interactive, data-state, and --ghost-pointer-* variables. |
data-part | glow | Decorative spotlight overlay. aria-hidden. Not a public slot. |
data-state | off | Reduced motion, coarse pointer, empty effects, or unmounted. No listeners. |
data-state | idle | Capable of tracking. At rest; glow opacity is 0. |
data-state | tracking | Pointer is over the host. Glow follows --ghost-pointer-x/y. |
| Name | Description |
|---|---|
--ghost-pointer-x | Pointer x in CSS pixels, written imperatively on the host. |
--ghost-pointer-y | Pointer y in CSS pixels, written imperatively on the host. |
--ghost-pointer-nx | Unitless pointer x from -0.5 to 0.5. |
--ghost-pointer-ny | Unitless pointer y from -0.5 to 0.5. |
Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/practices/hiding-semantics/.
Required ARIA attributes: none.
None declared.
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. |
Spotlight tracking on a native host with a glow layer.
Quarterly report
Move the pointer across this card.
<script setup lang="ts">
import { useTemplateRef } from 'vue'
import { useGhostInteractiveSurface } from '@ghostvue/vue'
const host = useTemplateRef<HTMLElement>('host')
const { rootProps } = useGhostInteractiveSurface(host)
</script>
<template>
<article ref="host" class="report-card" v-bind="rootProps">
<span data-part="glow" aria-hidden="true" />
<p class="report-card__title">Quarterly report</p>
<p class="report-card__copy">Move the pointer across this card.</p>
</article>
</template>
<style scoped>
.report-card {
min-block-size: 8rem;
padding: var(--ghost-space-inset-md, 1.25rem);
position: relative;
}
.report-card__title,
.report-card__copy {
margin: 0;
}
.report-card__title {
font-size: 1.15rem;
font-weight: 650;
}
</style>