Function: useFocusManagement()
function useFocusManagement(dep): RefObject<HTMLElement | null>;
Defined in: packages/kata-react/src/a11y.ts:71
Hook that auto-focuses the provided ref when the dependency changes. Useful for focusing the “Next” button or first choice on frame change.
Parameters
dep
any
Returns
RefObject<HTMLElement | null>