@taiga-ui/cdk
Version:
Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance
10 lines (9 loc) • 324 B
TypeScript
/**
* 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 tuiIsNativeFocused(node?: Node | null): boolean;