GhostCommandPaletteTrigger reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Optional opener with GhostDialogTrigger semantics (type="button", aria-haspopup="dialog", aria-expanded, aria-controls). Disabled when the root is disabled.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostCommandPaletteTriggerElement | "button" | No | Tag name or component rendered for the trigger control. |
disabled | boolean | false | No | Disables opening from this trigger; the root `disabled` also applies. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Primary content. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
blur | () => void | Exposed method `blur`. |
element | HTMLElement | null | Exposed property `element`. |
focus | (options?: FocusOptions) => void | Exposed method `focus`. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | trigger | Opener with class ghost-command-palette-trigger and data-part="trigger". |
data-state | open | data-state="open" while the palette is open, otherwise closed. |
CSS variables
None declared.
Accessibility
Role: button. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/.
Required ARIA attributes: aria-haspopup, aria-expanded, aria-controls.
Keyboard
| Key | Action | Automated browser test |
|---|---|---|
Enter | Opens the palette. | Not reviewed |
Space | Opens the palette. | 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.