UNPKG

@taiga-ui/cdk

Version:

Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance

23 lines (22 loc) 621 B
export interface TuiGetClosestFocusableOptions { /** * @description: * current HTML element */ initial: Element; /** * @description: * should it look backwards instead (find item that will be focused with Shift + Tab) */ previous?: boolean; /** * @description: * top Node limiting the search area */ root: Node; } /** * @description: * Finds the closest element that can be focused with a keyboard or mouse in theory */ export declare function tuiGetClosestFocusable({ initial, root, previous, }: TuiGetClosestFocusableOptions): HTMLElement | null;