Skip to content
Binary UIKit reference Stable

CommandPalette

Searchable command dialog with grouped results.

Use CommandPalette for searchable application commands when the available actions span several groups. Give duplicate titles distinct `id` values; titles remain searchable.

Interactive example

Loading interactive example

API

MemberTypeKindRequiredDefault
emptySnippetsnippetNoundefined
filterboolean | ((item: CommandPaletteItem, query: string) => boolean)callbackNotrue
hotkeystring | falsepropNo'k'
itemsCommandPaletteItem[] | CommandPaletteGroup[]propNo[]
labelstringpropNo'Search'
onSelect(item: CommandPaletteItem) => voidcallbackNoundefined
onSubmit(query: string) => voidcallbackNoundefined
openbooleanbindingNofalse
placeholderstringpropNo'Search…'
querystringbindingNo''
rowSnippet<[CommandPaletteItem, boolean]>snippetNoundefined

Source

Loading source