Skip to content

GhostCommandPaletteOverlay reference ​

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

Modal backdrop rendered only while the palette is open and modal. Pressing it dismisses the palette. After logical close it stays mounted with data-state="closed" and pointer-events: none only while its own CSS exit fade runs, then unmounts.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostCommandPaletteOverlayElement"div"NoTag name or component rendered for the modal backdrop.
portalbooleantrueNoTeleport overlay through `GhostPortal` when `true`, or render inline when `false`.
portalToGhostPortalTarget"body"NoTeleport target passed to `GhostPortal` when `portal` is `true`.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultPrimary content.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidExposed method `blur`.
elementHTMLElement | nullMounted overlay element while open and modal or exiting; null otherwise.
focus(options?: FocusOptions) => voidExposed method `focus`.

Parts and data attributes ​

AttributeValueDescription
data-partoverlayBackdrop with class ghost-command-palette-overlay and data-part="overlay".
data-stateopendata-state="open" while mounted.
data-stateclosedApplied on data-state while the backdrop plays its exit fade after logical close; inline pointer-events: none lets clicks reach the page.

CSS variables ​

None declared.

Accessibility ​

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

Required ARIA attributes: aria-hidden.

Keyboard ​

None declared.

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.