Skip to content

Command Palette Input

@astryxdesign/core v0.7.1 · CommandPaletteInput

Usage ​

Use CommandPaletteInput inside CommandPalette for a popup-backed command query, or as an independent search field when no result popup is present.

ts
import { CommandPaletteInput } from '@astryx-vue/core/CommandPalette'

Anatomy

ElementDescription
InputThe surrounding inline layout for the search glyph, query field, and trailing content.
Search glyphA decorative search icon before the query field.
Query fieldThe native text field. It is a searchbox when standalone without popup attributes and a combobox when popup relationships are supplied or CommandPalette context is present.
Loading spinnerA delayed pending indicator shown before trailing content while search is busy.
Trailing contentCaller-provided supporting content such as a clear control or shortcut hint.

Best practices ​

GuidancePractices
DoPass a concise label that identifies what can be searched when "Search commands" does not describe it; the placeholder is never the field's name.
DoUse endContent for short supporting controls or shortcut hints at the trailing edge.
Don'tOverride combobox role or popup state. CommandPaletteInput owns those semantics when connected to CommandPalette.

Examples ​

Common configurations, variations, and states.

With End Content

Custom placeholder and a keyboard shortcut badge in the trailing slot via endContent.