Skip to content

GhostDrawerOverlay reference ​

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

Headless modal backdrop for GhostDrawer. Renders only when the drawer is open and modal is true; marked aria-hidden="true", carries data-side, and is excluded from inert isolation. 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
asGhostDrawerOverlayElement"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
defaultOptional backdrop content.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidBlurs the resolved overlay element.
elementHTMLElement | nullMounted overlay element while open and modal or exiting; null otherwise.
focus(options?: FocusOptions) => voidFocuses the resolved overlay element when mounted.

Parts and data attributes ​

AttributeValueDescription
data-partoverlayBackdrop element marked with class ghost-drawer-overlay and data-part="overlay".
data-stateopenApplied on data-state while open and modal.
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: none. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/.

Required ARIA attributes: none.

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.