Z
Zyeon UI

useFocusWithin · Zyeon UI

A callback-ref hook that reports whether focus is inside a subtree — no flicker when focus moves between children, and it still flips off when the focused node is removed.

npx shadcn@latest add @zyeon/use-focus-within
Preview useFocusWithin on Zyeon UI's site (opens in a new tab)

Not checked yet

Zyeon UI limits how often it can be asked, and useFocusWithin hasn't had its turn. Its source will show here once it has.