mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-08 10:43:38 +00:00
14 lines
419 B
TypeScript
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 };
|