UNPKG

@acusti/dropdown

Version:

React component that renders a dropdown with a trigger and supports searching, keyboard access, and more

33 lines (32 loc) 1.01 kB
export declare const ITEM_SELECTOR = "[data-ukt-item], [data-ukt-value]"; export declare const getItemElements: (dropdownElement: HTMLElement | null) => HTMLCollection | NodeListOf<Element> | null; export declare const getActiveItemElement: (dropdownElement: HTMLElement | null) => HTMLElement | null; export declare const setActiveItem: ({ dropdownElement, element, index, indexAddend, isExactMatch, text, }: { dropdownElement: HTMLElement; element: HTMLElement; index?: null; indexAddend?: null; isExactMatch?: null; text?: null; } | { dropdownElement: HTMLElement; element?: null; index: number; indexAddend?: null; isExactMatch?: null; text?: null; } | { dropdownElement: HTMLElement; element?: null; index?: null; indexAddend: number; isExactMatch?: null; text?: null; } | { dropdownElement: HTMLElement; element?: null; index?: null; indexAddend?: null; isExactMatch?: boolean; text: string; }) => void;