Confine keyboard Tab focus to containerRef while active is true.
containerRef
active
On activation, moves focus to the first focusable child. On deactivation, focus restoration is handled by the caller via useFocusReturn.
useFocusReturn
Confine keyboard Tab focus to
containerRefwhileactiveis true.On activation, moves focus to the first focusable child. On deactivation, focus restoration is handled by the caller via
useFocusReturn.