UNPKG

@mantine/hooks

Version:

A collection of 50+ hooks for state and UI management

7 lines (6 loc) 342 B
import { Ref } from 'react'; type PossibleRef<T> = Ref<T> | undefined; export declare function assignRef<T>(ref: PossibleRef<T>, value: T): void; export declare function mergeRefs<T>(...refs: PossibleRef<T>[]): (node: T | null) => void; export declare function useMergedRef<T>(...refs: PossibleRef<T>[]): (node: T | null) => void; export {};