UNPKG

@rooks/use-boundingclientrect-ref

Version:

A hook that tracks the boundingclientrect of an element. It returns a callbackRef so that the element node if changed is easily tracked.

40 lines (39 loc) 1.17 kB
{ "main": "lib/index.js", "jsnext:main": "lib/index.esm.js", "module": "lib/index.esm.js", "types": "lib/types/index.d.ts", "license": "MIT", "description": "A hook that tracks the boundingclientrect of an element. It returns a callbackRef so that the element node if changed is easily tracked. ", "name": "@rooks/use-boundingclientrect-ref", "homepage": "https://react-hooks.org/docs/use-boundingclientrect-ref", "repository": { "type": "git", "url": "https://github.com/imbhargav5/rooks.git", "directory": "packages/boundingclientrect-ref" }, "scripts": { "lint": "sh ../../scripts/lint.sh", "clean": "sh ../../scripts/clean.sh", "prebuild": "yarn clean", "build": "sh ../../scripts/build.sh", "dts-build": "sh ../../scripts/dts-build.sh" }, "keywords": [ "use", "react", "hooks", "rooks", "react-hooks.org" ], "peerDependencies": { "react": ">=16.8.0" }, "version": "4.11.2", "_id": "@rooks/use-boundingclientrect-ref@", "readme": "ERROR: No README data found!", "publishConfig": { "access": "public" }, "gitHead": "06505ee4cb6785a3edc51ccf99cb6401823a5171" }