useFocusTrap
Traps focus within a specified element.
Examples
In these examples, clicking outside of an active focus trap will disable the focus trap. This is not the default behavior. It's just a workaround so focus behavior is not broken on the page if a user forgets to disable the focus trap after interacting with the example.
Default
Could not load examples for Primer component library: product