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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostDrawerOverlayElement | "div" | No | Tag name or component rendered for the modal backdrop. |
portal | boolean | true | No | Teleport overlay through `GhostPortal` when `true`, or render inline when `false`. |
portalTo | GhostPortalTarget | "body" | No | Teleport target passed to `GhostPortal` when `portal` is `true`. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Optional backdrop content. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
blur | () => void | Blurs the resolved overlay element. |
element | HTMLElement | null | Mounted overlay element while open and modal or exiting; null otherwise. |
focus | (options?: FocusOptions) => void | Focuses the resolved overlay element when mounted. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | overlay | Backdrop element marked with class ghost-drawer-overlay and data-part="overlay". |
data-state | open | Applied on data-state while open and modal. |
data-state | closed | Applied 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.
| 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.