Gathering detailed insights and metrics for @rooks/use-outside-click
Gathering detailed insights and metrics for @rooks/use-outside-click
Gathering detailed insights and metrics for @rooks/use-outside-click
Gathering detailed insights and metrics for @rooks/use-outside-click
Essential React custom hooks ⚓ to super charge your components!
npm install @rooks/use-outside-click
Typescript
Module System
Node Version
NPM Version
TypeScript (72.28%)
MDX (24.42%)
JavaScript (3.11%)
Shell (0.1%)
CSS (0.09%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3,288 Stars
3,105 Commits
220 Forks
19 Watchers
36 Branches
75 Contributors
Updated on Jul 14, 2025
Latest Version
4.11.2
Package Id
@rooks/use-outside-click@4.11.2
Unpacked Size
8.26 kB
Size
3.32 kB
File Count
13
NPM Version
lerna/3.22.1/node@v12.22.1+x64 (linux)
Node Version
12.22.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
npm install rooks
or
yarn add rooks
Rooks is completely treeshakeable and if you use only 1 of the 50+ hooks in the package, only that hook will be bundled with your code. Your bundle will only contain the hooks that you need. Cheers!
Outside click(for a ref) event as hook for React.
npm install --save @rooks/use-outside-click
1import useOutsideClick from "@rooks/use-outside-click";
1function Demo() { 2 const pRef = useRef(); 3 function outsidePClick() { 4 alert("Clicked outside p"); 5 } 6 useOutsideClick(pRef, outsidePClick); 7 return ( 8 <div> 9 <p ref={pRef}>Click outside me</p> 10 </div> 11 ); 12} 13 14render(<Demo />);
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
6 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 5
Reason
9 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 1/27 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More