UNPKG

@acusti/use-bounding-client-rect

Version:

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

52 lines (51 loc) 1.61 kB
{ "name": "@acusti/use-bounding-client-rect", "version": "2.0.1", "type": "module", "sideEffects": false, "exports": "./dist/useBoundingClientRect.js", "main": "./dist/useBoundingClientRect.js", "types": "./dist/useBoundingClientRect.d.ts", "files": [ "dist" ], "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" ], "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.6", "@vitejs/plugin-react": "^4.5.0", "babel-plugin-react-compiler": "rc", "react": "^19.0.0", "react-dom": "^19.0.0", "typescript": "5.8.3", "unplugin-dts": "^1.0.0-beta.0", "vite": "^6.3.5", "vitest": "^3.1.4" }, "peerDependencies": { "react": "^19 || ~0.0.0-experimental < 0.0.0-f", "react-dom": "^19 || ~0.0.0-experimental < 0.0.0-f" }, "scripts": { "build": "vite build" } }