react-user-input-detection
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

react-user-input-detection

A lightweight React hook for detecting the user's input method within a web application. This package provides a simple way to track whether a user is interacting via a keyboard or mouse, enhancing accessibility and the user experience of your application. The package also includes a context provider necessary for the hook's functionality. Regardless of whether the user begins with a keyboard and later transitions to a mouse, the hook dynamically detects these changes, recognizing the user's input method as mouse-based. This monitoring ensures accurate tracking of user interaction.

README for more information.

Package Sidebar

Install

npm i react-user-input-detection

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

18.2 kB

Total Files

5

Last publish

Collaborators

  • dbish6