This repository has been archived on 2025-07-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files

10 lines
269 B
TypeScript

import { Measurable } from '@radix-ui/rect';
/**
* Use this custom hook to get access to an element's rect (getBoundingClientRect)
* and observe it along time.
*/
declare function useRect(measurable: Measurable | null): ClientRect | undefined;
export { useRect };