Skip to content

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.

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostCommandPaletteInputElement"input"NoTag name or component rendered for the query field.
disabledbooleanfalseNoDisables typing and activation from this input.

Emits ​

None declared.

Models ​

None declared.

Slots ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidExposed method `blur`.
elementHTMLElement | nullExposed property `element`.
focus(options?: FocusOptions) => voidExposed method `focus`.

Parts and data attributes ​

AttributeValueDescription
data-partinputField with class ghost-command-palette-input and data-part="input".
data-stateopendata-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 ​

KeyActionAutomated browser test
ArrowDownHighlights the next enabled command (wraps) and updates aria-activedescendant on the input.Not reviewed
ArrowUpHighlights the previous enabled command (wraps).Not reviewed
HomeHighlights the first enabled command.Not reviewed
EndHighlights the last enabled command.Not reviewed
EnterActivates the highlighted command: emits command with its id and, with closeOnSelect, closes. Never commits a selection or rewrites the query.Not reviewed
EscapeClears 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.

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.