ReferenceComponentsDialogs, toasts, and overlays
CommandPaletteProps
CommandPaletteProps component contract.
Type
export interface CommandPaletteProps {
readonly open?: boolean;
readonly defaultOpen?: boolean;
readonly onOpenChange?: (open: boolean) => void | Promise<void>;
readonly commands?: readonly Command[];
readonly placeholder?: string;
readonly hotkey?: string;
}Members
| Member | Type | Required | Description | Related types |
|---|---|---|---|---|
open | boolean | undefined | No | The open member uses the boolean | undefined contract. | — |
defaultOpen | boolean | undefined | No | The defaultOpen member uses the boolean | undefined contract. | — |
onOpenChange | ((open: boolean) => void | Promise<void>) | undefined | No | The onOpenChange member uses the ((open: boolean) => void | Promise<void>) | undefined contract. | — |
commands | readonly Command<unknown>[] | undefined | No | The commands member uses the readonly Command<unknown>[] | undefined contract. | Command |
placeholder | string | undefined | No | The placeholder member uses the string | undefined contract. | — |
hotkey | string | undefined | No | The hotkey member uses the string | undefined contract. | — |