TanStack Hotkeys ships a devtools panel inside the TanStack Devtools multi-panel UI so you can inspect shortcuts, scopes, and key state live while developing.
Note
Devtools exports are automatic no-ops outside development mode. To embed the panel in production, see Production builds.
Use the Hotkeys panel to:
Inspect every registered chord and sequence along with its options and status (active, suspended, disabled)
Watch multi-step sequence progress live as keys are pressed
See declared app hotkeys before their components mount, including user-customized bindings
Monitor held keys in real time
Check whether Caps Lock, Num Lock, and Scroll Lock are on, off, or unknown (?) in the Locks group of the top bar. Num Lock and Scroll Lock show n/a on macOS and iOS, where browsers don't report them
Trigger hotkey callbacks from the UI without pressing physical keys
Inspect each registration's target, event type, and conflict behavior
Install both the TanStack Devtools host package and the Hotkeys devtools adapter for your framework.
Note
Keep your TanStack Devtools host package up to date, such as @tanstack/react-devtools 0.10.14 or newer. Older hosts pass a theme string instead of props, which causes theme issues and TypeScript errors. Both libraries are in beta, so upgrade them together.
npm install @tanstack/react-devtools @tanstack/react-hotkeys-devtoolsimport { TanStackDevtools } from '@tanstack/react-devtools'
import { hotkeysDevtoolsPlugin } from '@tanstack/react-hotkeys-devtools'
const devtoolsPlugins = [hotkeysDevtoolsPlugin()]
function App() {
return <TanStackDevtools plugins={devtoolsPlugins} />
}The Hotkeys panel appears alongside any other TanStack devtools plugins you have installed.
HotkeysDevtoolsPanel renders the panel directly without the TanStack Devtools dock:
import { HotkeysDevtoolsPanel } from '@tanstack/react-hotkeys-devtools'
function DebugPanel() {
return <HotkeysDevtoolsPanel />
}Both theme and devtoolsOpen are optional. theme defaults to 'dark', and devtoolsOpen defaults to true. Pass theme="light" for light mode. When mounted via hotkeysDevtoolsPlugin(), the dock's settings take precedence.
In production builds, the framework devtools exports become no-op stubs so they won't affect bundle behavior.
To include the panel in a production build, import from the /production entry point:
import { hotkeysDevtoolsPlugin } from '@tanstack/react-hotkeys-devtools/production'This entry point also exports the active HotkeysDevtoolsPanel for standalone use.