UseFocusTrapOptions
Defined in: src/hooks/useFocusTrap/useFocusTrap.ts:16
Properties
Section titled “Properties”containerRef
Section titled “containerRef”containerRef:
RefObject<HTMLElement|null>
Defined in: src/hooks/useFocusTrap/useFocusTrap.ts:18
Ref to the container element whose focusable descendants are trapped.
enabled?
Section titled “enabled?”
optionalenabled?:boolean
Defined in: src/hooks/useFocusTrap/useFocusTrap.ts:24
When false, the trap is bypassed (Tab works normally). Useful for toggling trap state without unmounting.
Default
Section titled “Default”true