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.

20 lines (16 loc) 475 B
// @flow type inexactNumber = number | undefined | null; type Dimensions = { x: inexactNumber; y: inexactNumber; width: inexactNumber; height: inexactNumber; top: inexactNumber; right: inexactNumber; bottom: inexactNumber; left: inexactNumber; }; declare const UseBoundingRect: ( initialValue: Partial<Dimensions> | undefined | null, ) => [Dimensions, { current: HTMLElement | undefined | null }]; export { UseBoundingRect, UseBoundingRect as default };