CommandPalette.
Search commands using the familiar ⌘K shortcut.
The preview uses the actual shared component, including your current theme, rounding, border and motion preferences.
Props & API reference
Parameters available in the shared component, including value types, requirements and accepted options.
| Parameter | Type | Required | Default | Possible values | Description |
|---|---|---|---|---|---|
items | CommandItem[] | Yes | — | — | Commands with IDs, labels, descriptions, groups and callbacks. |
open | boolean | Yes | — | true · false | Controlled dialog state. |
onOpenChange | (open: boolean) => void | Yes | — | — | Controls showing/dismissing the command palette. |
placeholder | string | No | Search commands... | — | Search box hint. |
className | string | No | — | — | Additional CSS class on the outer component element. |