Command

A keyboard-driven command palette. Opens with ⌘K (or Ctrl K), filters items as you type, and navigates with arrow keys. Compose with CommandGroup, CommandItem, and CommandSeparator. Groups auto-hide when all their items are filtered out.

Basic

Press ⌘K (or Ctrl K on Windows) to open, or click the trigger. Items in this demo navigate, toggle the theme, or open links — try them.

With keyboard shortcuts

Add a shortcut prop to CommandItem to display a hint badge. This palette uses ⌘J as its trigger key.

Dark mode