@hakuna-matata-ui/hooks
Version:
React hooks for Chakra components
10 lines • 420 B
TypeScript
import * as React from "react";
import { BoxModel } from "@hakuna-matata-ui/utils";
/**
* Reack hook to measure a component's dimensions
*
* @param ref ref of the component to measure
* @param observe if `true`, resize and scroll observers will be turned on
*/
export declare function useDimensions(ref: React.RefObject<HTMLElement>, observe?: boolean): BoxModel | null;
//# sourceMappingURL=use-dimensions.d.ts.map