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:
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.