0.1.0 • Published 8 years ago

react-clickaway v0.1.0

Weekly downloads
5
License
ISC
Repository
github
Last release
8 years ago

React Clickaway

Mixin that adds a componentClickAway method to react components that fires the you click away from it.

Installation

npm install react-clickaway --save

Add it to your component

mixins: [
  require('react-clickaway')
]

And then just add the method:

componentClickAway: function() {
  console.log('Someone clicked outside this component...')
}

Thanks

This is just a modularized version of the https://github.com/callemall work, they used this script internally on material-ui.

0.1.0

8 years ago

0.0.2

9 years ago

0.0.1

9 years ago