R
fn

useFocusGuard

v0.0.2testeddemo

Adds 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

ParameterTypeDescription
namespace?string | undefinedA namespace to group the focus guards