react-hotkeys-hook
JSON →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.
Traffic · last 30 days ↓50% vs prev 7d
total hits 10
actors 3 distinct systems
last hit 4d ago AhrefsBot
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇧🇷 Brazil · 🇬🇧 United Kingdom
Resources
homepagereact-hotkeys-hook.vercel.app/ ↗
API endpoints
full doc /v1/registry/react-hotkeys-hook