@wayz/react-click-outside
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

ClickOutside

React click outside component.

Installation

$ npm install @wayz/react-click-outside

Example

const onClickOutside = (e) => {}
;<ClickOutside onClickOutside={onClickOutside}>
  <p>Im a menu or something that you want to hide when clicking outside.</p>
</ClickOutside>

Badges


Package Sidebar

Install

npm i @wayz/react-click-outside

Weekly Downloads

4

Version

0.1.0

License

MIT

Unpacked Size

5.14 kB

Total Files

6

Last publish

Collaborators

  • aaron.qi
  • yl.wang