https://github.com/jyoketsu/clickoutside-react
https://github.com/jyoketsu/clickoutside-react
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jyoketsu/clickoutside-react
- Owner: jyoketsu
- License: mit
- Created: 2020-09-27T00:55:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-12T03:30:59.000Z (almost 3 years ago)
- Last Synced: 2025-03-10T18:11:37.175Z (3 months ago)
- Language: TypeScript
- Size: 2.23 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# click-outside-react
## [live demo](https://jyoketsu.github.io/clickoutside-react/)
## Installation```bash
yarn add @jyoketsu/click-outside-react
```or
```
npm i @jyoketsu/click-outside-react
```## Props
| Name | Type |
| ------------------- | ---------------- |
| onClickOutside | Function |
| style | Object |## Usage
```jsx
import { ClickOutside } from '@jyoketsu/click-outside-react';const MyComp = () => (
alert('click-outside')}>
);
```