by Pawan Kumar @jsartisan
Implement useFocusTrap
hook that returns a ref that you we can assign to a DOM element which will trap focus. Anything outside that element, will no longer be able to receive focus.
const { ref } = useFocusTrap();
by Pawan Kumar @jsartisan
Implement useFocusTrap
hook that returns a ref that you we can assign to a DOM element which will trap focus. Anything outside that element, will no longer be able to receive focus.
const { ref } = useFocusTrap();