downshift
Version:
🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.
7 lines (6 loc) • 369 B
TypeScript
import * as React from 'react';
import { UseTagGroupProps } from '../index.types';
/**
* Focuses the tag at activeIndex when it changes or when an item is removed.
*/
export declare function useRovingTagFocus(activeIndex: number, itemsLength: number, getTagId: NonNullable<UseTagGroupProps<unknown>['getTagId']>): React.MutableRefObject<Record<string, HTMLElement>>;