UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

9 lines (8 loc) 306 B
export interface UseFocusWithinOptions { onFocus?: (event: FocusEvent) => void; onBlur?: (event: FocusEvent) => void; } export declare function useFocusWithin<T extends HTMLElement = any>({ onBlur, onFocus, }?: UseFocusWithinOptions): { ref: React.MutableRefObject<T>; focused: boolean; };