UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

10 lines (9 loc) 409 B
export interface UseFocusWithinOptions { onFocus?: (event: FocusEvent) => void; onBlur?: (event: FocusEvent) => void; } export interface UseFocusWithinReturnValue<T extends HTMLElement = any> { ref: React.RefCallback<T | null>; focused: boolean; } export declare function useFocusWithin<T extends HTMLElement = any>({ onBlur, onFocus, }?: UseFocusWithinOptions): UseFocusWithinReturnValue<T>;