GhostDialogTrigger reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Headless trigger control for GhostDialog. Sets aria-haspopup="dialog", aria-expanded, aria-controls, and data-state.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostDialogTriggerElement | "button" | No | Tag name or component rendered for the trigger control. |
disabled | boolean | false | No | Disables opening or toggling on click or keyboard activation. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Trigger label or button content. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
blur | () => void | Blurs the resolved trigger element. |
element | HTMLElement | null | Resolved DOM trigger element after mount; null before mount and after unmount. |
focus | (options?: FocusOptions) => void | Focuses the resolved trigger element. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | trigger | Trigger element marked with data-part="trigger". |
data-state | open | Dialog is open. |
data-state | closed | Dialog is closed. |
CSS variables
None declared.
Accessibility
Role: button. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/.
Required ARIA attributes: aria-expanded, aria-controls, aria-haspopup.
Keyboard
| Key | Action | Automated browser test |
|---|---|---|
Enter | Opens or toggles the dialog when enabled. | Not reviewed |
Space | Opens or toggles 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.