Trap Focus
The trapFocus
helper allows you to trap the focus within a Modal.
Usage
API
Arguments
The trapFocus
helper accepts a single argument:
Name | Default | Description |
---|---|---|
ref | null | The ref of the dialog element to trap focus within. |
Overview
Actions
Communication
Containment
Navigation
Selection
Inputs
Hooks & Helpers
On this page