-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
ABCrimson edited this page Mar 11, 2026
·
2 revisions
- Node.js >= 25.8.0 (ES2026 support)
- pnpm >= 11.0.0 (recommended) or npm/yarn
pnpm add modern-cmdk modern-cmdk/reactpnpm add modern-cmdkpnpm add modern-cmdk-search-wasmpnpm add -D modern-cmdk
npx modern-cmdk import-rewrite "src/**/*.tsx"
npx modern-cmdk data-attrs "src/**/*.tsx"
npx modern-cmdk forward-ref "src/**/*.tsx"
npx modern-cmdk should-filter "src/**/*.tsx"| Package | Peer Dependency |
|---|---|
modern-cmdk/react |
react >= 19.0.0, react-dom >= 19.0.0
|
modern-cmdk-search-wasm |
None (standalone WASM) |
Ensure your tsconfig.json targets ES2026:
{
"compilerOptions": {
"target": "ES2026",
"module": "ESNext",
"moduleResolution": "bundler",
"lib": ["ES2026", "DOM", "DOM.Iterable"]
}
}| Package | Gzipped |
|---|---|
modern-cmdk |
≤ 3 KB |
modern-cmdk/react |
≤ 5 KB |
modern-cmdk-search-wasm (JS wrapper) |
≤ 2 KB |