Gathering detailed insights and metrics for react-click-outside-hook
Gathering detailed insights and metrics for react-click-outside-hook
Gathering detailed insights and metrics for react-click-outside-hook
Gathering detailed insights and metrics for react-click-outside-hook
react-outside-click-hook
A React hook that handles clicks outside of a given element and calls a provided function.
react-cool-onclickoutside
React hook to listen for clicks outside of the component(s).
@souvik666/react-outside-click-hook
A React hook for capturing outside click events. The useOutsideClick hook allows you to detect when a user clicks outside of a specific element on your website. It returns a reference to the element, which you can attach to a DOM node using the ref attrib
@types/react-click-outside-hook
TypeScript definitions for react-click-outside-hook
Simple to use React Hook with click outside functionality
npm install react-click-outside-hook
Typescript
Module System
Node Version
NPM Version
JavaScript (90.67%)
CSS (9.33%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
10 Stars
51 Commits
2 Forks
1 Watchers
5 Branches
2 Contributors
Updated on Nov 22, 2022
Latest Version
1.1.1
Package Id
react-click-outside-hook@1.1.1
Unpacked Size
18.75 kB
Size
4.99 kB
File Count
7
NPM Version
6.7.0
Node Version
10.15.0
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
react-click-outside-hook
🎣React Hook implementation with click outside functionality.
pointer
and touch
eventsInstall using Yarn:
1yarn add react-click-outside-hook
or NPM:
1npm install react-click-outside-hook --save
useClickOutside
1const [ref, hasClickedOutside] = useClickOutside()
The new React Hooks make it easier than ever to monitor the hasClickedOutside
state of
your components. Call the useClickOutside
hook which will return an array containing a ref
and the
hasClickedOutside
status.
Simply assign the ref
to the DOM element you want to monitor and the hook will
report the status.
1import React from 'react' 2import { useClickOutside } from 'react-click-outside-hook' 3 4function Component() { 5 const [ref, hasClickedOutside] = useClickOutside() 6 return <div ref={ref}>{hasClickedOutside.toString()}</div> 7}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 1/12 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
109 existing vulnerabilities detected
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