Command Palette
A Cmd-K style launcher: a modal dialog with a search box over a filterable command list. Typing filters; ArrowDown/ArrowUp move the active command (focus stays in the input via aria-activedescendant); Enter runs it and closes; Escape closes without running.
- Axe
- Name
- Roving
- Focus
- Escape
Preview
No command run
- New File
- Open File
- Save
- Close Tab
- Toggle Sidebar
Installation
npx shadcn@latest add https://ui.publictheta.com/r/command-palette.jsonConformance
Verified against the @publictheta/ui-spec command-palette specification on both the React and vanilla reference implementations, across Chromium, Firefox, and WebKit.
- Axe — No WCAG 2 A/AA axe-core violations
- Name — The widget container exposes an accessible name
- Roving — Exactly one tab stop; Arrow keys move within the widget
- Focus — A visible focus indicator appears on keyboard focus (WCAG 2.4.7)
- Escape — Escape dismisses the open overlay
See the full conformance matrix across all components.