childrenRequired | React.ReactNode | Not set | Command.Input, Command.List, and other sub-components |
defaultSearch | string | undefined | | Default search value (uncontrolled) |
Dialog.childrenRequired | React.ReactNode | Not set | — |
Dialog.defaultOpen | boolean | undefined | Not set | Default open state |
Dialog.defaultSearch | string | undefined | Not set | Default search value |
Dialog.filter | CommandFilter | undefined | Not set | Ranks an item for a search: 0 hides it, and higher scores sort first.
Default: a prefix beats a word start, which beats a substring, which beats a keyword. |
Dialog.footer | React.ReactNode | Not set | The key hints under the list. Pass `null` to leave them out. |
Dialog.label | string | undefined | Not set | The palette's accessible name. |
Dialog.loop | boolean | undefined | Not set | Whether arrow keys wrap from the last item to the first. |
Dialog.onOpenChange | ((open: boolean) => void) | undefined | Not set | Called when the open state changes |
Dialog.onSearchChange | ((search: string) => void) | undefined | Not set | Called when search input changes |
Dialog.open | boolean | undefined | Not set | Controlled open state |
Dialog.search | string | undefined | Not set | Controlled search value |
Empty.childrenRequired | React.ReactNode | Not set | — |
Error.childrenRequired | React.ReactNode | Not set | What went wrong, in one sentence |
Error.onRetry | (() => void) | undefined | Not set | Adds a Retry button |
Error.retryLabel | string | undefined | Not set | Label for the retry button. |
filter | CommandFilter | undefined | Not set | Ranks an item for a search: 0 hides it, higher scores sort first. The default ranks a prefix over a word start over a substring over a keyword. |
Group.childrenRequired | React.ReactNode | Not set | — |
Group.heading | string | undefined | Not set | Group heading text |
Input.className | string | undefined | Not set | — |
Item.childrenRequired | React.ReactNode | Not set | — |
Item.disabled | boolean | undefined | Not set | Whether this item is disabled |
Item.keywords | string[] | undefined | Not set | Extra keywords for filtering |
Item.onSelect | ((value: string, event: React.MouseEvent<HTMLDivElement> | React.KeyboardEvent<HTMLDivElement>) => void) | undefined | Not set | Runs the item (Return or a press). Inside `Command.Dialog` the palette closes after it,
unless the handler calls `event.preventDefault()`. |
Item.value | string | undefined | Not set | Value used for filtering (falls back to text content) |
List.childrenRequired | React.ReactNode | Not set | — |
List.loading | boolean | undefined | Not set | Results are loading: the list is busy, and after a second a spinner row shows. |
List.loadingLabel | string | undefined | Not set | The loading row's words. |
loop | boolean | undefined | true | Whether to loop keyboard navigation |
onSearchChange | ((search: string) => void) | undefined | Not set | Called when search input changes |
search | string | undefined | Not set | Controlled search value |