GhostCommandPaletteInput reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Combobox query field. Its keyboard handling mirrors GhostComboboxInput, except that Enter activates the highlighted command instead of selecting it. Typing writes the root search and emits search.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostCommandPaletteInputElement | "input" | No | Tag name or component rendered for the query field. |
disabled | boolean | false | No | Disables typing and activation from this input. |
Emits
None declared.
Models
None declared.
Slots
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 | input | Field with class ghost-command-palette-input and data-part="input". |
data-state | open | data-state="open" while the palette is open. |
CSS variables
None declared.
Accessibility
Role: combobox. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-autocomplete-list/.
Required ARIA attributes: aria-expanded, aria-controls, aria-autocomplete, aria-activedescendant.
Keyboard
| Key | Action | Automated browser test |
|---|---|---|
ArrowDown | Highlights the next enabled command (wraps) and updates aria-activedescendant on the input. | Not reviewed |
ArrowUp | Highlights the previous enabled command (wraps). | Not reviewed |
Home | Highlights the first enabled command. | Not reviewed |
End | Highlights the last enabled command. | Not reviewed |
Enter | Activates the highlighted command: emits command with its id and, with closeOnSelect, closes. Never commits a selection or rewrites the query. | Not reviewed |
Escape | Clears the highlight and closes the palette when closeOnEscape is true; focus returns to the opener. | 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.