Feedback
CommandPalette
⌘K command palette built on cmdk, on the overlay surface. Rows highlight like a dropdown: the brand tint, and the icon and shortcut turn brand. Kbd chips for esc and the footer hints. Use Command alone for an inline list, or inside CommandDialog. Wire the shortcut with useCommandPalette.
Preview
inline · hover or use the arrows
as a dialog
Installation
Resolves dependencies, copies the source, and installs npm packages automatically.
Usage
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| open | boolean | - | Controlled open state (CommandDialog) |
| onOpenChange | (open: boolean) => void | - | Callback on close (CommandDialog) |
| placeholder | string | - | Input placeholder (CommandInput) |
| shortcut | string | - | Keyboard shortcut label (CommandItem) |
| icon | ReactNode | - | Icon before label (CommandItem) |