tuil
ReferenceComponentsDialogs, toasts, and overlays

CommandPaletteProps

CommandPaletteProps component contract.

View rawEdit

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

MemberTypeRequiredDescriptionRelated types
openboolean | undefinedNoThe open member uses the boolean | undefined contract.
defaultOpenboolean | undefinedNoThe defaultOpen member uses the boolean | undefined contract.
onOpenChange((open: boolean) => void | Promise<void>) | undefinedNoThe onOpenChange member uses the ((open: boolean) => void | Promise<void>) | undefined contract.
commandsreadonly Command<unknown>[] | undefinedNoThe commands member uses the readonly Command<unknown>[] | undefined contract.Command
placeholderstring | undefinedNoThe placeholder member uses the string | undefined contract.
hotkeystring | undefinedNoThe hotkey member uses the string | undefined contract.

Source

View the secondary source reference

On this page