@acusti/use-is-out-of-bounds
Version:
React hook that detects if an element is outside of its parent’s bounds on any of its sides (like collision detection)
56 lines (55 loc) • 1.7 kB
JSON
{
"name": "@acusti/use-is-out-of-bounds",
"version": "0.15.0",
"type": "module",
"sideEffects": false,
"exports": "./dist/useIsOutOfBounds.js",
"main": "./dist/useIsOutOfBounds.js",
"types": "./dist/useIsOutOfBounds.d.ts",
"files": [
"dist"
],
"description": "React hook that detects if an element is outside of its parent’s bounds on any of its sides (like collision detection)",
"keywords": [
"react",
"react-hooks",
"hooks",
"bounds",
"out-of-bounds",
"collision-detection",
"overflow",
"typescript",
"ts"
],
"repository": {
"type": "git",
"url": "https://github.com/acusti/uikit.git",
"directory": "packages/use-is-out-of-bounds"
},
"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-is-out-of-bounds#readme",
"devDependencies": {
"@types/react": "^19.1.6",
"@vitejs/plugin-react": "^4.5.0",
"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"
},
"dependencies": {
"@acusti/use-bounding-client-rect": "^2.0.0"
},
"peerDependencies": {
"react": "^16.8 || ^17 || ^18 || ^19 || ~0.0.0-experimental < 0.0.0-f",
"react-dom": "^16.8 || ^17 || ^18 || ^19 || ~0.0.0-experimental < 0.0.0-f"
},
"scripts": {
"build": "vite build"
}
}