Ensures that the user can only focus on elements within a specified container ("trap").
When enabled, the user will not be able to interact with elements outside the trap.
Be sure to disable when done to prevent memory leaks.
The element to trap focus within
Options to provide to the FocusTrap
Enables the FocusTrap
Disables the FocusTrap
Ensures that the user can only focus on elements within a specified container ("trap").
When enabled, the user will not be able to interact with elements outside the trap.
Be sure to disable when done to prevent memory leaks.