UNPKG

@byteclaw/use-overflow-scroll-position

Version:

React hook for calculating number of pixels scrolled through in an overflow:scroll enabled container

56 lines (55 loc) 1.5 kB
{ "name": "@byteclaw/use-overflow-scroll-position", "version": "1.0.3", "description": "React hook for calculating number of pixels scrolled through in an overflow:scroll enabled container", "main": "dist/use-overflow-scroll-position.js", "module": "dist/use-overflow-scroll-position.esm.js", "unpkg": "dist/use-overflow-scroll-position.umd.js", "source": "src/index.ts", "types": "dist/index.d.ts", "typings": "dist/index.d.js", "scripts": { "build": "microbundle build -o dist", "prebuild": "rimraf dist", "prepublishOnly": "npm run build", "test": "jest", "test:watch": "jest --watch", "typecheck": "tsc --noEmit" }, "peerDependencies": { "@types/react": "^16.9.11 || ^17.0.0", "react": "^16.12.0 || ^17.x" }, "sideEffects": false, "repository": { "type": "git", "url": "git+https://github.com/byteclaw/hooks.git" }, "keywords": [ "react", "hooks", "scroll-position" ], "license": "MIT", "bugs": { "url": "https://github.com/byteclaw/hooks/issues" }, "homepage": "https://github.com/byteclaw/hooks/tree/master/packages/use-overflow-scroll-position#readme", "contributors": [ { "name": "Michal Kvasničák", "url": "https://github.com/michalkvasnicak" }, { "name": "Juraj Hríb", "url": "https://github.com/jurajhrib" } ], "files": [ "dist" ], "publishConfig": { "access": "public" }, "gitHead": "6ec2f17204b3484a5d7ba1c717dbf54cd6ead901" }