GhostDialogClose reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Headless close control rendered inside GhostDialogContent. Closes the nearest enclosing GhostDialog on click or keyboard activation.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostDialogCloseElement | "button" | No | Tag name or component rendered for the close control. |
disabled | boolean | false | No | Disables closing on click or keyboard activation. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Close button label or icon. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
blur | () => void | Blurs the resolved close element. |
element | HTMLElement | null | Resolved DOM close element after mount; null before mount and after unmount. |
focus | (options?: FocusOptions) => void | Focuses the resolved close element. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | close | Close control marked with data-part="close". |
CSS variables
None declared.
Accessibility
Role: button. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/button/.
Required ARIA attributes: none.
Keyboard
| Key | Action | Automated browser test |
|---|---|---|
Enter | Closes the dialog when enabled. | Not reviewed |
Space | Closes the dialog when enabled. | 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.