UNPKG

reakit-utils

Version:

Reakit utils

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