https://github.com/tj/react-click-outside
ClickOutside component for React.
https://github.com/tj/react-click-outside
Last synced: 9 months ago
JSON representation
ClickOutside component for React.
- Host: GitHub
- URL: https://github.com/tj/react-click-outside
- Owner: tj
- License: mit
- Created: 2016-02-24T18:31:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-12-22T10:27:18.000Z (almost 5 years ago)
- Last Synced: 2025-03-28T09:07:15.027Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 775
- Watchers: 7
- Forks: 75
- Open Issues: 18
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
- awesome_frontend_development_resources - react-click-outside - ClickOutside component for React. (React / React Components)
- awesome - react-click-outside - ClickOutside component for React. (React / React Components)
README
# ClickOutside
React click outside component.
## Installation
```
$ npm install tj/react-click-outside
```
## Example
```js
Im a menu or something that you want to hide when clicking outside.
```
## Badges


---
> [tjholowaychuk.com](http://tjholowaychuk.com) ·
> GitHub [@tj](https://github.com/tj) ·
> Twitter [@tjholowaychuk](https://twitter.com/tjholowaychuk)