mirror of
https://github.com/hex248/ob248.com.git
synced 2026-02-08 10:43:38 +00:00
10 lines
266 B
TypeScript
10 lines
266 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): DOMRect | undefined;
|
|
|
|
export { useRect };
|