A global Hotkey provider with built in tooltip for React

A global Hotkey provider with built in tooltip for React

A global Hotkey provider with built in tooltip for React.

React Hotkey Tooltip

Greenkeeper badge Travis badge npm version Coverage Status eslint code style: prettier

A global Hotkey provider with built in tooltip for React

Docs

Why you should use it?

When working with hotkeys in a React application we will find many problems when trying to implement it:

  • Hotkeys are only accesible inside a specific component (not globally).
  • Must take care of the hotkeys manually throughout the life cycle.
  • Have to provide a way so the user can see all the hotkeys on the screen.

This library will help you by declaring global hotkeys that automatically will be updated by any life cycle of the component and show a tooltip by pressing a combination of keys ✨

Built with

Why mess up with document.addEventListener or positioning/styling tooltips if there are a lot of open source libraries that can do that for me. This are the chosen ones!

  • mousetrap: to bind and unbind hotkeys globally

Github Repository