react-hover-delay-trigger
v0.2.1
Published
react-hover-delay-trigger is a component of which the children component will delay to trigger callback when the hover action happens.
Downloads
15
Maintainers
Readme
- react-hover-delay-trigger is a component of which the children component will delay to trigger callback when the hover action happens.
install
npm install react-hover-delay-trigger --save
import
- this package is developed by es6 syntax, so we recommend to load the package as follows:
import ReactHoverDelayTrigger from 'react-hover-delay-trigger';
Demo
<ReactHoverDelayTrigger
delay={1100}
handleHoverTrigger={this.handleHoverTrigger}
handleHoverCancel={this.handleHoverCancel}
>
<span>677777</span>
</ReactHoverDelayTrigger>
Contributing
- compile
npm run build
License
- ISC