downshift
Version:
🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.
12 lines (11 loc) • 638 B
TypeScript
import { GetItemIndexByCharacterKeyOptions } from './types';
export declare function getItemIndexByCharacterKey<Item>({ keysSoFar, highlightedIndex, items, itemToString, isItemDisabled, }: GetItemIndexByCharacterKeyOptions<Item>): number;
export declare const defaultProps: {
isItemDisabled(): boolean;
itemToString(item: any): string;
itemToKey(item: any): any;
stateReducer: (s: Object, a: Object) => Object;
scrollIntoView: typeof import("../../utils").scrollIntoView;
environment: (Window & typeof globalThis) | undefined;
};
export declare let validatePropTypes: (options: unknown, caller: Function) => void;