react-click-away-listener
Advanced tools
Comparing version 1.4.1 to 1.4.2
{ | ||
"name": "react-click-away-listener", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "A simple click away listener built with React Hooks", | ||
@@ -17,2 +17,3 @@ "main": "dist/react-click-away-listener.js", | ||
"cleanup": "rimraf dist", | ||
"postinstall": "echo 'Thanks for installing the package.\nPlease help spread the word to end Sars in my country https://en.wikipedia.org/wiki/End_SARS'", | ||
"build": "npm run cleanup && npm-run-all build:*", | ||
@@ -19,0 +20,0 @@ "report-coverage": "cat ./coverage/lcov.info | coveralls", |
<p align="center"> | ||
<img src="https://raw.githubusercontent.com/ooade/react-click-away-listener/master/logo.png" height="150" /> | ||
<h3 align="center">~500B React Click Away Listener</h3> | ||
<h3 align="center">~700B React Click Away Listener</h3> | ||
<p align="center"> | ||
@@ -45,2 +45,11 @@ <a href="https://www.npmjs.org/package/react-click-away-listener"><img src="https://img.shields.io/npm/v/react-click-away-listener.svg?style=flat-square" alt="npm"></a> | ||
## Props | ||
| Prop | Default value | Description | | ||
| ----------- | ------------- |---------------------------------------------------------- | | ||
| onClickAway | undefined | Fires when a user clicks outside the click away component | | ||
| as | div | The rendered element type | | ||
| mouseEvent | click | The mouse event type that gets fired on ClickAway | | ||
| touchEvent | touchend | The touch event type that gets fired on ClickAway | | ||
## Examples | ||
@@ -47,0 +56,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17335
61
1