@loke/ui
Version:
10 lines (9 loc) • 407 B
TypeScript
import { type PropsWithChildren } from "react";
declare function FocusGuards(props: PropsWithChildren): import("react").ReactNode;
/**
* Injects a pair of focus guards at the edges of the whole DOM tree
* to ensure `focusin` & `focusout` events can be caught consistently.
*/
declare function useFocusGuards(): void;
declare const Root: typeof FocusGuards;
export { FocusGuards, Root, useFocusGuards, };