Skip to content

GhostPopoverContent reference ​

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

Headless floating non-modal dialog surface for GhostPopover. Composes GhostPortal, useFloating, useDismissableLayer, and untrapped useFocusScope and useGhostPresence, and is unmounted (v-if) while closed. After logical close it stays mounted with data-state="closed", inert, and pointer-events: none only while its own CSS exit transition or animation runs (useGhostPresence), then unmounts; focus, dismissal, release immediately.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostPopoverContentElement"div"NoTag name or component rendered for the popover dialog surface.
flipboolean | GhostPopoverFlipOptionstrueNoFlip to an opposite side when overflowing the viewport or boundary.
offsetboolean | GhostPopoverOffsetOptions—NoDistance or axis offsets passed to `useFloating`.
placementPlacement"bottom"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 | GhostPopoverShiftOptionstrueNoShift along the cross axis to keep the popover in view.
strategyStrategy"absolute"NoCSS positioning strategy passed to `useFloating`.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultNon-modal dialog content rendered while open.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidRemoves focus from the floating dialog element.
elementHTMLElement | nullMounted floating dialog element while open or exiting; null once unmounted.
focus(options?: FocusOptions) => voidFocuses the floating dialog element when mounted.

Parts and data attributes ​

AttributeValueDescription
data-partcontentFloating surface marked with class ghost-popover-content, data-part="content", and data-placement.
data-stateopenApplied on data-state while mounted and open.
data-stateclosedApplied on data-state while the surface plays its exit motion after logical close; the surface is also inert with inline pointer-events: none until it unmounts.

CSS variables ​

None declared.

Accessibility ​

Role: dialog. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/.

Required ARIA attributes: aria-labelledby.

Keyboard ​

KeyActionAutomated browser test
EscapeDismisses the topmost open popover and restores focus to the trigger.Not reviewed
TabMoves freely without trapping (non-modal).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.