@itwin/itwinui-react
Version:
A react component library for iTwinUI
10 lines (9 loc) • 453 B
TypeScript
import * as React from 'react';
/**
* Function that merges the provided refs into one.
*/
export declare const mergeRefs: <T>(...refs: Array<React.Ref<T> | React.Ref<T> | undefined | null>) => (instance: T | null) => void;
/**
* Returns a ref callback that merges the provided refs using `mergeRefs`.
*/
export declare const useMergedRefs: <T>(...refs: ReadonlyArray<React.Ref<T> | React.Ref<T> | undefined | null>) => (instance: T | null) => void;