use-focus-within
Detect if any element within has focus
Import
Source
Docs
Package
Usage
use-focus-within
hook detects if any element within has focus, it works the same way as :focus-within
CSS selector:
One of elements has focus: false
use-focus-within
hook detects if any element within has focus, it works the same way as :focus-within
CSS selector: