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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostPopoverContentElement | "div" | No | Tag name or component rendered for the popover dialog surface. |
flip | boolean | GhostPopoverFlipOptions | true | No | Flip to an opposite side when overflowing the viewport or boundary. |
offset | boolean | GhostPopoverOffsetOptions | — | No | Distance or axis offsets passed to `useFloating`. |
placement | Placement | "bottom" | 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 | GhostPopoverShiftOptions | true | No | Shift along the cross axis to keep the popover in view. |
strategy | Strategy | "absolute" | No | CSS positioning strategy passed to `useFloating`. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Non-modal dialog content rendered while open. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
blur | () => void | Removes focus from the floating dialog element. |
element | HTMLElement | null | Mounted floating dialog element while open or exiting; null once unmounted. |
focus | (options?: FocusOptions) => void | Focuses the floating dialog element when mounted. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | content | Floating surface marked with class ghost-popover-content, data-part="content", and data-placement. |
data-state | open | Applied on data-state while mounted and open. |
data-state | closed | Applied 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
| Key | Action | Automated browser test |
|---|---|---|
Escape | Dismisses the topmost open popover and restores focus to the trigger. | Not reviewed |
Tab | Moves 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.
| 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.