react-hotkeys-hook

JSON →
library 5.3.0 ·javascript
verified May 1, 2026

A React hook for declaratively handling keyboard shortcuts in components. Current stable version is 5.3.0, released with monthly cadence. It ships TypeScript definitions, supports scopes to prevent hotkey collisions, focus traps, and enables/disables scopes via context. Unlike alternatives like react-hotkeys (maintenance mode) or mousetrap (no React hook), this library is React-first with a simple hook API. Requires React >= 16.8.0. Bundle size is minimal (~2KB gzipped). ESM and CJS exports available.

total hits 10
actors 3 distinct systems
last hit 4d ago AhrefsBot
GPTBot
5
ClaudeBot
1
Humans
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇧🇷 Brazil · 🇬🇧 United Kingdom