ComponentsCommandPalette

overlaystexulinot agent-emittableapp

CommandPalette

command-palette

Dialog-hosted command palette with search and recent items.

Live examples

Open palette

Open palette

Loading demo…

Props

Public props for CommandPalette
NameKindRequiredDefaultDescription
openbooleannofalse—
onOpenChangeeventno——
searchunknownno—Sync or async search function
onSelecteventno——
recentItemsarrayno——
debounceMsnumberno——
placeholderstringno——
shortcutbooleannotrue—
recentLabelstringno——
titlestringno——
descriptionstringno——
emptyLabelstringno——
recentEmptyLabelstringno——
loadingLabelstringno——
errorLabelstringno——
sizeenum (sm, md, lg)no"md"—
variantenum (outline, soft)no"default"—
classstringno——

Keyboard

Keyboard behavior for CommandPalette
KeyAction
—See accessibility notes for keyboard behavior.

Accessibility

  • Dialog title/description; listbox keyboard for results.

Evidence for command-palette

Latest committed gates for command-palette (as of 2026-10-23). Static snapshot — not live CI.

Behavior

checkedscenario command

5 checks

Rows in tests/behavior/scenarios/command.spec.ts, held to the WAI-ARIA APG pattern, run on Chromium, WebKit and the Pixel 7.

Size (gzip)

@texuli/primitives/command · budget 20.0 KiB

Budget from texuli.budgets.json; re-measure with `pnpm size --filter <entry>`.

Axe

documented

  • tests/e2e/site-component-pages.spec.ts
  • docs/quality (a11y-*)

Site component pages axe gate; package-level a11y docs under docs/quality when present.

Browsers

  • chromium
  • webkit
  • mobile

Playwright projects: Desktop Chrome, Desktop Safari, Pixel 7. Firefox is a known gap on this host.

When to use

Use when

  • App-wide jump-to and actions (⌘K)

Don’t use when

Prefer another component

  • Simple select lists (use select or combobox)