Skip to content

GhostPopover reference ​

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

Themed wrapper around headless GhostPopover, GhostPopoverTrigger, GhostPopoverContent, and GhostPopoverClose. Importing from @ghostvue/themes loads the default elevation-3 surface stylesheet.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
openboolean—NoControlled open state forwarded to headless GhostPopover.
defaultOpenbooleanfalseNoInitial open state when open is omitted.

Emits ​

None declared.

Models ​

PropEventTypeDescription
openupdate:openbooleanv-model:open binding for controlled state.

Slots ​

NameDescription
defaultPopover trigger and content parts.

Slot props: default ​

NameTypeDescription
openbooleanCurrent open state.
close() => voidCloses the popover.

Exposed members ​

None declared.

Parts and data attributes ​

AttributeValueDescription
data-parttriggerAnchor control rendered by GhostPopoverTrigger.
data-partcontentElevated floating dialog surface rendered by GhostPopoverContent with data-themed.
data-partcloseClose control rendered by GhostPopoverClose.
data-stateopenApplied to trigger and content while open.
data-stateclosedApplied to trigger while closed.

CSS variables ​

NameDescription
--ghost-elevation-3-bgSurface background color of GhostPopoverContent.
--ghost-elevation-3-borderBorder color of GhostPopoverContent.
--ghost-elevation-3-shadowDrop shadow of GhostPopoverContent.
--ghost-elevation-3-highlightInner highlight shadow of GhostPopoverContent.
--ghost-border-hairline-widthBorder thickness.
--ghost-radius-lgCorner radius of GhostPopoverContent.
--ghost-surface-fgForeground text color.
--ghost-space-inset-mdInternal padding of GhostPopoverContent.
--ghost-focus-ring-colorOuter focus-visible outline color when content receives focus.
--ghost-focus-ring-contrastInner focus-visible halo color.
--ghost-focus-ring-offsetFocus-visible outline offset.
--ghost-focus-ring-widthFocus-visible outline width.

Accessibility ​

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

Required ARIA attributes: aria-expanded, aria-controls, aria-haspopup.

Keyboard ​

KeyActionAutomated browser test
EnterToggles the popover when focused on the trigger, or closes when focused on GhostPopoverClose.Not reviewed
SpaceToggles the popover when focused on the trigger, or closes when focused on GhostPopoverClose.Not reviewed
EscapeDismisses the topmost open popover and restores focus to the trigger.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 ​

popover/share-settings ​

Example source

Sharing settings

Document card with a Share popover: general access, link permission, and collaborator switches that apply live, with dismissal and focus return to the trigger.

popover/themed ​

Example source

Themed

Elevated surface tokens and themed button controls composed via the as prop.