UNPKG

@taiga-ui/cdk

Version:

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

15 lines (14 loc) 415 B
/** * Checks if element is focused. * * Could return true even after blur since element remains focused if you switch away from a browser tab. * * @param node or null (as a common return value of DOM nodes walking) * @return true if focused */ export declare function tuiIsFocused(node?: Node | null): boolean; export { /** * @deprecated use {@link tuiIsFocused} */ tuiIsFocused as tuiIsNativeFocused, };