View as Markdown

API reference: @salmonui/dropdowns/combobox

ComboboxSearchOperatortype

import type { ComboboxSearchOperator } from '@salmonui/dropdowns/combobox';
type SearchOperator<Item = unknown> = 'startsWith' | 'contains' | 'endsWith' | ((item: Item, text: string) => boolean);

A named operator or a predicate over the item and the raw search text.