@r-hook/use-mouse-leave
TypeScript icon, indicating that this package has built-in type declarations

1.0.12 • Public • Published

use-mouse-leave

Be notified when the mouse leaves an area.

import { useMouseAway } from "@r-rook/use-mouse-away";

const addIgnored = useMouseAway((e) => console.log("Area left!"));

<div>
  <div ref={addIgnored(1)}></div>
  <div ref={addIgnored(123)}></div>
  <div ref={addIgnored("another-id")}></div>
</div>;

Readme

Keywords

none

Package Sidebar

Install

npm i @r-hook/use-mouse-leave

Weekly Downloads

0

Version

1.0.12

License

MIT

Unpacked Size

3.34 kB

Total Files

6

Last publish

Collaborators

  • kosciolek