useFocusElement
Returns element(name), the registered control in the document, or null.
Read-only: the first-visit tour uses it to ring the control a step names.
This is a function exported by @mapcairn/map, checked against version 0.2.0.
Signature
import { useFocusElement } from "@mapcairn/map";
function useFocusElement(): (name: FocusName) => HTMLElement | null;
Returns
(name: FocusName) => HTMLElement | null