Documentation Index
Fetch the complete documentation index at: https://mintlify.com/dip/cmdk/llms.txt
Use this file to discover all available pages before exploring further.
Install the package
Peer dependencies
cmdk requires React and ReactDOM as peer dependencies. Both React 18 and React 19 (including release candidates) are supported.| Package | Version |
|---|---|
react | ^18 || ^19 || ^19.0.0-rc |
react-dom | ^18 || ^19 || ^19.0.0-rc |
Radix UI dependencies
cmdk uses several Radix UI primitives internally. These are listed as regular dependencies and are installed automatically when you install cmdk.| Package | Purpose |
|---|---|
@radix-ui/react-dialog | Powers Command.Dialog overlay |
@radix-ui/react-compose-refs | Ref merging utility |
@radix-ui/react-id | Stable ID generation |
@radix-ui/react-primitive | Base primitive components |
Client component requirement
Next.js App Router
In the Next.js App Router, all components are Server Components by default. Add the'use client' directive at the top of any file that imports from cmdk.
