UNPKG

@acusti/use-bounding-client-rect

Version:

React hook that returns the boundingClientRect for an element and triggers an update when those dimensions change

47 lines (46 loc) 1.41 kB
{ "name": "@acusti/use-bounding-client-rect", "version": "1.5.0", "type": "module", "sideEffects": false, "exports": "./dist/useBoundingClientRect.js", "main": "./dist/useBoundingClientRect.js", "types": "./dist/useBoundingClientRect.d.ts", "files": [ "dist", "src" ], "description": "React hook that returns the boundingClientRect for an element and triggers an update when those dimensions change", "keywords": [ "react", "react-hooks", "hooks", "boundingClientRect", "useBoundingClientRect", "typescript", "ts", "flow" ], "repository": { "type": "git", "url": "https://github.com/acusti/uikit.git", "directory": "packages/use-bounding-client-rect" }, "author": "andrew patton <andrew@acusti.ca> (https://www.acusti.ca)", "license": "Unlicense", "bugs": { "url": "https://github.com/acusti/uikit/issues" }, "homepage": "https://github.com/acusti/uikit/tree/main/packages/use-bounding-client-rect#readme", "devDependencies": { "@types/react": "^19.1.1", "react": "^19.0.0", "react-dom": "^19.0.0", "typescript": "5.8.3", "vitest": "^3.1.1" }, "peerDependencies": { "react": "^16.8 || ^17 || ^18 || ^19", "react-dom": "^16.8 || ^17 || ^18 || ^19" } }