Files
2026-01-01 17:40:53 +01:00

14 lines
419 B
TypeScript

import * as React from 'react';
interface FocusGuardsProps {
children?: React.ReactNode;
}
declare function FocusGuards(props: FocusGuardsProps): 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;
export { FocusGuards, FocusGuards as Root, useFocusGuards };