Skip to content

GhostTooltipContent reference ​

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

Positioned floating tooltip surface with role="tooltip".

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

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostTooltipContentElement"div"NoTag name or component rendered for the tooltip surface.
flipboolean | GhostTooltipFlipOptionstrueNoFlip to an opposite side when overflowing the viewport or boundary.
offsetboolean | GhostTooltipOffsetOptions—NoDistance or axis offsets passed to `useFloating`.
placementPlacement"top"NoPreferred placement relative to the trigger.
portalbooleantrueNoTeleport content through `GhostPortal` when `true`, or render inline when `false`.
portalToGhostPortalTarget"body"NoTeleport target passed to `GhostPortal` when `portal` is `true`.
shiftboolean | GhostTooltipShiftOptionstrueNoShift along the cross axis to keep the tooltip in view.
strategyStrategy"absolute"NoCSS positioning strategy passed to `useFloating`.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultPrimary content.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidExposed method `blur`.
elementHTMLElement | nullExposed property `element`.
focus(options?: FocusOptions) => voidExposed method `focus`.

Parts and data attributes ​

AttributeValueDescription
data-partcontentFloating tooltip marked with data-part="content" and class ghost-tooltip-content.
data-stateopenVisible while mounted.

CSS variables ​

None declared.

Accessibility ​

Role: tooltip. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/tooltip/.

Required ARIA attributes: none.

Keyboard ​

KeyActionAutomated browser test
EscapeDismisses the tooltip via the root when it is the topmost open overlay layer (escape-only; never an outside-click layer).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 ​

None declared.