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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostTooltipContentElement | "div" | No | Tag name or component rendered for the tooltip surface. |
flip | boolean | GhostTooltipFlipOptions | true | No | Flip to an opposite side when overflowing the viewport or boundary. |
offset | boolean | GhostTooltipOffsetOptions | — | No | Distance or axis offsets passed to `useFloating`. |
placement | Placement | "top" | No | Preferred placement relative to the trigger. |
portal | boolean | true | No | Teleport content through `GhostPortal` when `true`, or render inline when `false`. |
portalTo | GhostPortalTarget | "body" | No | Teleport target passed to `GhostPortal` when `portal` is `true`. |
shift | boolean | GhostTooltipShiftOptions | true | No | Shift along the cross axis to keep the tooltip in view. |
strategy | Strategy | "absolute" | No | CSS positioning strategy passed to `useFloating`. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Primary content. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
blur | () => void | Exposed method `blur`. |
element | HTMLElement | null | Exposed property `element`. |
focus | (options?: FocusOptions) => void | Exposed method `focus`. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | content | Floating tooltip marked with data-part="content" and class ghost-tooltip-content. |
data-state | open | Visible 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
| Key | Action | Automated browser test |
|---|---|---|
Escape | Dismisses 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.
| 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
None declared.