UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

6 lines (5 loc) 277 B
export interface UseDebouncedValueOptions { leading?: boolean; } export type UseDebouncedValueReturnValue<T> = [T, () => void]; export declare function useDebouncedValue<T = any>(value: T, wait: number, options?: UseDebouncedValueOptions): UseDebouncedValueReturnValue<T>;