Aur UI

Command Palette

Searchable, keyboard-driven jump list in a dialog — quick links, actions, and search results as one navigable surface.

bash
pnpm add @aur-ui/ui
tsx
import { CommandPalette, CommandPaletteTrigger, type CommandGroup, type CommandItem } from "@aur-ui/ui/patterns/command-palette";

The palette is data-agnostic: pass groups computed from the current query — static quick links, client-side search hits, API results, anything. Keyboard handling (↑↓ cycle, Enter runs, Esc closes), ARIA combobox wiring, the footer hint bar, and the ⌘/Ctrl shortcut (shortcutKey) are built in. Items close the palette when run unless marked keepOpen (e.g. a theme toggle). The docs site's own search is this pattern fed with minisearch hits.