downshift
Version:
🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.
13 lines (12 loc) • 398 B
TypeScript
export declare const dropdownDefaultProps: {
itemToString(item: unknown): string;
itemToKey(item: unknown): unknown;
isItemDisabled(_item: unknown): boolean;
stateReducer: <S, A>(_state: S, actionAndChanges: A & {
props: any;
} & {
changes: Partial<S>;
}) => Partial<S>;
scrollIntoView: any;
environment: (Window & typeof globalThis) | undefined;
};