fn
useFocusGuard
v0.0.2testeddemoAdds a pair of focus guards at the boundaries of the DOM tree to ensure consistent focus behavior
Examples
ts
useFocusGuard();ts
useFocusGuard('my-namespace');Demo
Loading demo…
Signature
ts
export function useFocusGuard(namespace?: string){ ... }Parameters
| Parameter | Type | Description |
|---|---|---|
namespace? | string | undefined | A namespace to group the focus guards |