@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.
21 lines (16 loc) • 491 B
TypeScript
import React from "react";
type inexactNumber = number | undefined | null;
type Dimensions = {
x: inexactNumber;
y: inexactNumber;
width: inexactNumber;
height: inexactNumber;
top: inexactNumber;
right: inexactNumber;
bottom: inexactNumber;
left: inexactNumber;
};
declare function UseBoundingRect<T extends HTMLElement>(
initialValue: Partial<Dimensions> | undefined | null,
): [Dimensions, React.RefObject<T>];
export { UseBoundingRect, UseBoundingRect as default };