# cmdk

> Fast, unstyled React command menu with built-in fuzzy filtering.

Source: https://tastebase.ehsanulsiam.workers.dev/browse/cmdk

free

Fast, unstyled React command menu with built-in fuzzy filtering.

by Paco Coursey[GitHub](https://github.com/dip/cmdk)[npm](https://npmjs.com/package/cmdk)

[visit](https://github.com/dip/cmdk?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://github.com/dip/cmdk](https://github.com/dip/cmdk?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [Kobra](https://tastebase.ehsanulsiam.workers.dev/browse/kobra)

A polished shadcn registry on Base UI: quiet gray UI, tuned motion, AI and agent components.

no preview

### [shadcn/ui](https://tastebase.ehsanulsiam.workers.dev/browse/shadcn-ui)

Copy-in React components on Tailwind, built on Base UI, Radix or React Aria, plus a registry CLI.

no preview

### [Radix Primitives](https://tastebase.ehsanulsiam.workers.dev/browse/radix-ui)

The original unstyled, accessible React primitives, now one tree-shakeable package.

no preview

### [assistant-ui](https://tastebase.ehsanulsiam.workers.dev/browse/assistant-ui)

React primitives and runtime for production AI chat: streaming, threads, tool UI, attachments.

## Try it

Open project

Toggle theme

Copy link

Invite teammate

## Looks that pick it

[Minimalfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/minimal)[Corporate / dashboardfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/corporate)[Technical / dev-toolfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/technical)[Fluentfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/fluent)[macOS desktopfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/macos-desktop)[Bento gridfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/bento-grid)[Modular gridfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/modular-grid)[Flat designfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/flat-design)[Material Design 2first pick](https://tastebase.ehsanulsiam.workers.dev/looks/material-design)[Document / Notion-likefirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/document)[Data-dense / terminalfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/data-dense)[Fintechfirst pick](https://tastebase.ehsanulsiam.workers.dev/looks/fintech)[and 8 more](https://tastebase.ehsanulsiam.workers.dev/looks)

## For your agent

##### Install

`npm i cmdk`

##### Use it for

- a Cmd+K palette in a SaaS app: jump to page, run action, switch workspace
- a searchable picker inside a popover (assignee, label, project)
- the engine under shadcn/ui's Command component

##### Skip it when

- you want nested scopes, breadcrumbs and tuned motion out of the box: use kobra's command-menu
- thousands of items: filtering is synchronous; pass `shouldFilter={false}` and filter or virtualise yourself
- a form combobox with a value and validation: use base-ui or react-aria Combobox
- Vue or Svelte: use shadcn-vue's Command (Reka) or bits-ui Command

##### What's inside10 free

- Command
- Command.Dialog
- Command.Input
- Command.List
- Command.Item
- Command.Group
- Command.Separator
- Command.Empty
- Command.Loading
- useCommandState

##### Facts

**Frameworks**
react

**Styling**
unstyled

**Weight**
small

**Accessibility**
ok

**Maturity**
established

**License**
MIT

**Price**
Free

##### Pairs with

[shadcn/ui](https://tastebase.ehsanulsiam.workers.dev/browse/shadcn-ui)[Radix Primitives](https://tastebase.ehsanulsiam.workers.dev/browse/radix-ui)

##### Alternatives

[Kobra](https://tastebase.ehsanulsiam.workers.dev/browse/kobra)

```
import { Command } from 'cmdk'

<Command.Dialog open={open} onOpenChange={setOpen} label="Command menu">
  <Command.Input placeholder="Search" />
  <Command.List>
    <Command.Empty>No results.</Command.Empty>
    <Command.Group heading="Projects">
      <Command.Item onSelect={() => go('/new')}>New project</Command.Item>
    </Command.Group>
  </Command.List>
</Command.Dialog>
```

https://github.com/dip/cmdk

This site doesn't allow being shown inside another page. Here is how it looks.

[Open in a new tab](https://github.com/dip/cmdk?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

[Visit](https://github.com/dip/cmdk?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
