reakit-utils
Version:
Reakit utils
11 lines (10 loc) • 314 B
TypeScript
/**
* Checks if `element` has focus within. Elements that are referenced by
* `aria-activedescendant` are also considered.
*
* @example
* import { hasFocusWithin } from "reakit-utils";
*
* hasFocusWithin(document.getElementById("id"));
*/
export declare function hasFocusWithin(element: Element): boolean;