UNPKG

@atlaskit/motion

Version:

A set of utilities to apply motion in your application.

10 lines (9 loc) 375 B
type Element = HTMLElement | null; export type CallbackRef = (instance: Element) => void; /** * Will return a tuple of the element and the callback ref to set. * This is used as a work around for using `useRef` directly with Typescript * as the types don't flow through as one would expect. */ export declare const useElementRef: () => [Element, CallbackRef]; export {};