OptionalcloseOnCommand?: booleanClose the hosting <dialog> after a command runs. Defaults to true.
OptionaldefaultOpen?: booleanOpen the hosting <dialog> immediately on enhance. Defaults to false.
OptionaldefaultValue?: stringInitial filter query; pre-fills the input.
Optionalhotkey?: stringLowercased key that, with Cmd/Ctrl, opens the palette's hosting <dialog>.
OptionalonCommand?: (value: string, item: HTMLElement) => voidCalled with the command's value when a command runs.
OptionalonOpenChange?: (open: boolean) => voidCalled after the hosting <dialog> opens or closes.
OptionalonValueChange?: (value: string) => voidCalled with the filter query after every change.
Options for enhanceCommand.