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-withinZyeon UI limits how often it can be asked, and useFocusWithin hasn't had its turn. Its source will show here once it has.