UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

15 lines (14 loc) 475 B
import * as React from "react"; type inexactNumber = number | null; export type Dimensions = { x: inexactNumber; y: inexactNumber; width: inexactNumber; height: inexactNumber; top: inexactNumber; right: inexactNumber; bottom: inexactNumber; left: inexactNumber; }; declare const useBoundingRect: <T extends HTMLElement>(initialValue: Partial<Dimensions> | undefined | null) => [Dimensions, React.RefObject<T>]; export default useBoundingRect;