10 Best React Keyboard Events Libraries

Curated by the Openbase team and community.Learn more

Curated by the Openbase team and community. Learn more

react-keyboard-event-handler

A React component for handling keyboard events

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User Rating
5.0/ 5
1
Top Feedback
N/A
GitHub Stars
103
Weekly Downloads
11K
Last Commit
2yrs ago
Bundle Size (min+gzip)
2.66KB
Not Tree-Shakeable
rae

react-any-event

Create and handle new events for HTML elements

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User Rating
5.0/ 5
1
Top Feedback
1Great Documentation
1Easy to Use
1Performant
GitHub Stars
N/A
Weekly Downloads
4
Last Commit
9mos ago
Bundle Size (min+gzip)
2.34KB
Not Tree-Shakeable
rhk

react-hot-keys

React component to listen to keydown and keyup keyboard events, defining and dispatching keyboard shortcuts.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
1Great Documentation
GitHub Stars
314
Weekly Downloads
15K
Last Commit
1mo ago
Bundle Size (min+gzip)
N/A
Tree-Shakeable

react-key-listener

web-based visualization libraries

License Icon
License: Apache-2.0
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
1K
Weekly Downloads
807
Last Commit
1mo ago
Bundle Size (min+gzip)
0.79KB
Not Tree-Shakeable
uke

use-key-event

⌨️ A lightweight, zero-dependency React hook for detecting dynamic keyboard events. Written in TypeScript.

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
8
Weekly Downloads
29
Last Commit
9mos ago
Bundle Size (min+gzip)
0.28KB
Tree-Shakeable
rkh

react-key-handler

React component to handle keyboard events 🔑

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
386
Weekly Downloads
6K
Last Commit
3yrs ago
Bundle Size (min+gzip)
2.60KB
Tree-Shakeable
rk

react-keyboard

Handle keyboard event in React

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
9
Weekly Downloads
49
Last Commit
7mos ago
Bundle Size (min+gzip)
7.26KB
Not Tree-Shakeable
uks

use-key-state

Keyboard events as values for React ( ¿ )

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
86
Weekly Downloads
225
Last Commit
1mo ago
Bundle Size (min+gzip)
N/A
Tree-Shakeable

react-mousetrap

HOC for Mousetrap

License Icon
License: Unknown
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
30
Weekly Downloads
2K
Last Commit
4yrs ago
Bundle Size (min+gzip)
3.04KB
Not Tree-Shakeable
rks

react-keyboard-shortcuts

A declarative library for handling hotkeys based on explicit priority in React applications

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
22
Weekly Downloads
2K
Last Commit
3yrs ago
Bundle Size (min+gzip)
3.36KB
Not Tree-Shakeable
rke

react-keyboard-event-handler-ssr

A React component for handling keyboard events

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
11
Last Commit
8mos ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
wel

web-events-logger

Logs DOM events

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
1
Weekly Downloads
0
Last Commit
1yr ago
Bundle Size (min+gzip)
3.52KB
Not Tree-Shakeable

react-event-components

🛰 A set of React components designed to handle global events (interval, keyboard, touch, mouse, etc)

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
274
Weekly Downloads
24
Last Commit
4yrs ago
Bundle Size (min+gzip)
2.63KB
Not Tree-Shakeable
rk

react-keymaster

React component to listen to keydown and keyup keyboard events

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
5
Weekly Downloads
19
Last Commit
3yrs ago
Bundle Size (min+gzip)
1.89KB
Tree-Shakeable
sha

shabdawali

Typewriting effect js plugin mimics human behavior

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
30
Weekly Downloads
11
Last Commit
3yrs ago
Bundle Size (min+gzip)
1.93KB
Not Tree-Shakeable
usk

use-special-keys

Simple React hook for handling KeyboardEvents with special keys

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
6
Last Commit
1yr ago
Bundle Size (min+gzip)
0.22KB
Not Tree-Shakeable
uem

usekey-event-manager

Easily map window listeners to keyboard events in React

License Icon
License: ISC
TypeScript Icon
TypeScript Definitions: Built-In
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
4
Last Commit
N/A
Bundle Size (min+gzip)
0.35KB
Not Tree-Shakeable
sho

shortkey

A small library to handle keyboard events in a more declarative way

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
3
Last Commit
3yrs ago
Bundle Size (min+gzip)
0.24KB
Tree-Shakeable
rbs

react-bind-shortcut

React key binding

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
2
Last Commit
4yrs ago
Bundle Size (min+gzip)
N/A
Not Tree-Shakeable
rkm

react-keybinding-mixin

A ReactJS mixin that enables components to bind callbacks to keyboard events

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
4
Weekly Downloads
2
Last Commit
4yrs ago
Bundle Size (min+gzip)
0.80KB
Not Tree-Shakeable
umk

use-multi-key-debugger

React hook for visually debugging keyboard events

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
N/A
Weekly Downloads
0
Last Commit
3yrs ago
Bundle Size (min+gzip)
1.13KB
Not Tree-Shakeable
ukd

use-key-debugger

React hook for visually debugging keyboard events

License Icon
License: MIT
TypeScript Icon
TypeScript Definitions: DefinitelyTyped
User RatingN/A
Top Feedback
N/A
GitHub Stars
7
Weekly Downloads
0
Last Commit
3yrs ago
Bundle Size (min+gzip)
1.08KB
Not Tree-Shakeable