UNPKG

@base-ui/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

21 lines 742 B
import { type Filter, type GetFilterParameters as UseFilterOptions, getFilter } from "../../../internals/filter.js"; export type { Filter, UseFilterOptions }; /** * Matches items against a query using `Intl.Collator` for robust string matching. */ export declare const useCoreFilter: typeof getFilter; export interface UseComboboxFilterOptions extends UseFilterOptions { /** * Whether the combobox is in multiple selection mode. * @default false */ multiple?: boolean | undefined; /** * The current value of the combobox. */ value?: any; } /** * Matches items against a query using `Intl.Collator` for robust string matching. */ export declare function useComboboxFilter(options?: UseComboboxFilterOptions): Filter;