Building blocks and outside APIs · Library

cmdk

A small React component for command menus, the search box that opens with Cmd+K or Ctrl+K and lets users jump to any page or action by typing.

Interface pieces · Open source · updated

How it works

cmdk supplies the behaviour and leaves the looks to you: an input, a list of items and groups, filtering and ranking as the user types, arrow-key navigation and the roles screen readers need. It renders inline or inside a dialog (built on Radix UI's Dialog), can double as an accessible combobox, and each item can run any function, such as opening a page, switching the theme or creating a record.

It is the engine behind the Command component in shadcn/ui, so many React apps use it without knowing. Command menus speed up large apps for regular users, but they add to navigation rather than replace it, because newcomers rarely know the shortcut exists.

cmdk pricing

Open source

Free (MIT).

Approximate, checked September 2026.What the other tools cost

More in Building blocks and outside APIs

Interface pieces

All 14 Building blocks and outside APIs terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.