Skip to content

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.

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostDialogTriggerElement"button"NoTag name or component rendered for the trigger control.
disabledbooleanfalseNoDisables opening or toggling on click or keyboard activation.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultTrigger label or button content.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidBlurs the resolved trigger element.
elementHTMLElement | nullResolved DOM trigger element after mount; null before mount and after unmount.
focus(options?: FocusOptions) => voidFocuses the resolved trigger element.

Parts and data attributes ​

AttributeValueDescription
data-parttriggerTrigger element marked with data-part="trigger".
data-stateopenDialog is open.
data-stateclosedDialog 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 ​

KeyActionAutomated browser test
EnterOpens or toggles the dialog when enabled.Not reviewed
SpaceOpens 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.

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.