Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-click-away-listener

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-click-away-listener - npm Package Compare versions

Comparing version 1.4.1 to 1.4.2

3

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc