Command
Command menu for search and quick actions. Built with cmdk.
Inline
A command menu rendered inline with a border.
Installation
CLI
Also needs
npx @sonojs/ui@latest add dialog input-group && npm i cmdk lucide-reactUsage
command.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | "Command Palette" | On CommandDialog — accessible dialog title. |
| description | string | "Search for a command to run..." | On CommandDialog — accessible dialog description. |
| showCloseButton | boolean | false | On CommandDialog — show the dialog close control. |
| heading | string | — | On CommandGroup — section label above items. |