EnhanceCommandOptions: {
    defaultValue?: string;
    hotkey?: string;
    onCommand?: (value: string, item: HTMLElement) => void;
    onValueChange?: (value: string) => void;
}

Options for enhanceCommand.

Type declaration

  • OptionaldefaultValue?: string

    Initial filter query; pre-fills the input.

  • Optionalhotkey?: string

    Lowercased key that, with Cmd/Ctrl, opens the palette's dialog.

  • OptionalonCommand?: (value: string, item: HTMLElement) => void

    Called with the command's value when a command runs.

  • OptionalonValueChange?: (value: string) => void

    Called with the filter query after every change.