@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 • 519 B
TypeScript
import * as React from "react";
type inexactNumber = number | null;
export interface 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 | null>];
export default useBoundingRect;
//# sourceMappingURL=index.d.ts.map