All Projects → EmaSuriano → react-hotkey-tooltip

EmaSuriano / react-hotkey-tooltip

Licence: MIT License
A global Hotkey provider with built in tooltip for React

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-hotkey-tooltip

Hotkeys
➷ A robust Javascript library for capturing keyboard input. It has no dependencies.
Stars: ✭ 5,165 (+15091.18%)
Mutual labels:  hotkeys, shortcut, hotkey, keyboard-shortcuts
React Hotkeys
React component to listen to keydown and keyup keyboard events, defining and dispatching keyboard shortcuts.
Stars: ✭ 279 (+720.59%)
Mutual labels:  react-component, hotkeys, shortcut
react-shortcut
Convenient React component that detects if the given key combination is pressed, and triggers a callback
Stars: ✭ 16 (-52.94%)
Mutual labels:  hotkeys, shortcut, hotkey
keys
⌨️ Keyboard Shortcuts for 'shiny'
Stars: ✭ 37 (+8.82%)
Mutual labels:  hotkeys, keyboard-shortcuts, mousetrap
keybind
ClojureScript key bindings (shortcut) library
Stars: ✭ 85 (+150%)
Mutual labels:  hotkeys, shortcut, hotkey
Xcactionbar
"Alfred for Xcode" plugin
Stars: ✭ 1,217 (+3479.41%)
Mutual labels:  shortcut, hotkey, keyboard-shortcuts
Keymage
Yet Another JS Keybinding library
Stars: ✭ 325 (+855.88%)
Mutual labels:  hotkeys, shortcut, hotkey
hotkey
⌨️ cross-platform hotkey package
Stars: ✭ 82 (+141.18%)
Mutual labels:  hotkeys, shortcut, hotkey
React Joyride
Create guided tours in your apps
Stars: ✭ 4,215 (+12297.06%)
Mutual labels:  react-component, tooltip
Reactjs Popup
React Popup Component - Modals,Tooltips and Menus —  All in one
Stars: ✭ 1,211 (+3461.76%)
Mutual labels:  react-component, tooltip
React Layer Stack
Layering system for React. Useful for popover/modals/tooltip/dnd application
Stars: ✭ 152 (+347.06%)
Mutual labels:  react-component, tooltip
React Hint
Tooltip component for React, Preact, Inferno
Stars: ✭ 338 (+894.12%)
Mutual labels:  react-component, tooltip
Win Vind
Simple Vim Key Binder for Windows. You can operate Windows with keybindings like Vim.
Stars: ✭ 151 (+344.12%)
Mutual labels:  hotkeys, hotkey
react-layer-stack
Layering system for React. Useful for popover/modals/tooltip/dnd application
Stars: ✭ 158 (+364.71%)
Mutual labels:  react-component, tooltip
Chordly
Chordly is a javascript library that may be used to detect and act upon key sequences entered by a user.
Stars: ✭ 14 (-58.82%)
Mutual labels:  hotkeys, keyboard-shortcuts
Tip
Programmable tooltip that can be used with any Mac OS app
Stars: ✭ 798 (+2247.06%)
Mutual labels:  tooltip, shortcut
webplayer-hotkeys
A Chrome extension that assigns hotkeys to play/pause, and switch musics (next and previous). Works with Spotify, Deezer, SoundCloud and Youtube
Stars: ✭ 16 (-52.94%)
Mutual labels:  hotkeys, hotkey
react-use-hotkeys
React hook for creating simple keyboard shortcuts
Stars: ✭ 74 (+117.65%)
Mutual labels:  hotkeys, keyboard-shortcuts
g910-gkey-macro-support
GKey support for Logitech G910 Keyboard on Linux
Stars: ✭ 85 (+150%)
Mutual labels:  hotkeys, shortcut
Cropper
Point and shoot screen captures
Stars: ✭ 100 (+194.12%)
Mutual labels:  hotkeys, keyboard-shortcuts

React Hotkey Tooltip

Master npm version semantic-release

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 accessible 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. These are the chosen ones!

Installation

You can the package manager you want:

# npm
$ npm install react-hotkey-tooltip

# yarn
$ yarn add react-hotkey-tooltip

Example

import React from 'react';
import { Hotkey, HotkeyProvider } from 'react-hotkey-tooltip';

const ClickableButtonByPressingA = () => (
  <HotkeyProvider>
    <Hotkey combination="a" onPress="click">
      <button onClick={() => alert('You have clicked me!')}>
        Click me using your keyboard!
      </button>
    </Hotkey>
  </HotkeyProvider>
);

For more examples please consider checking the Docs section.

License

MIT. Also check react-tippy.js' and mousetrap' license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].