Focus Trap
Focus Trap keeps the focus within its focusable children elements.
install | yarn add @clayui/core |
---|---|
version | 3.123.0 |
FocusTrap
Property | Description |
---|---|
active boolean | Flag to indicate if the focus trap is activated. The default value is false |
children React.ReactNode | The elements that will receive the focus within the focus trap. |
focusElementRef React.RefObject<HTMLElement> | Ref of the element that receives the focus when the focus trap is activated. |