# react-hover-action-delay

> React component to do action on hover after delay

Latest version **0.1.1** (published 2020-08-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-hover-action-delay
pnpm add react-hover-action-delay
yarn add react-hover-action-delay
bun add react-hover-action-delay
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2020-08-28 |
| First published | 2020-08-11 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | son-of-winter |
| Maintainers | son-of-winter |
| Keywords | react, hover, component, delay |

## Links

- npm: https://www.npmjs.com/package/react-hover-action-delay
- Repository: https://github.com/SonOfWinter/react-hover-action-delay
- Homepage: https://github.com/SonOfWinter/react-hover-action-delay#readme
- Issues: https://github.com/SonOfWinter/react-hover-action-delay/issues
- npm.io page: https://npm.io/package/react-hover-action-delay

## Dependencies (2)

- [react](https://npm.io/package/react.md) ^16.13.1
- [react-dom](https://npm.io/package/react-dom.md) 16.13.1

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2020-08-28
- 0.1.0 — 2020-08-11

## README

# react-hover-action-delay

React component to do action on hover after delay.

## Installation

With npm :

```
npm install react-hover-action-delay
```

With yarn :

```
yarn add react-hover-action-delay
```

## Usage

```javascript
<HoverComponent
    timer={2000}
    action={yourAction}
    onMouseLeave={onMouseLeave}
    onMouseEnter={onMouseEnter}
>
    <button>click</button>
</HoverComponent>
```

with :

* timer = time in ms (required)

* action = function to call when timer ended (required)

* onMouseEnter = function to call on mouse enter on the component

* onMouseLeave = function to call on mouse leave the component

---
_Source: https://npm.io/package/react-hover-action-delay · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
