TanStack Hotkeys provides devtools for debugging and monitoring all your registered hotkeys in real-time. The devtools integrate seamlessly within the TanStack Devtools multi-panel UI.
By default, the TanStack Devtools and TanStack Hotkeys Devtools will only be included in development mode. This helps keep your production bundle size minimal. If you need to include devtools in production builds (e.g., for debugging production issues), you can use the alternative "production" imports.
The Hotkeys devtools panel provides:
Install the devtools packages for your framework:
npm install @tanstack/react-devtools @tanstack/react-hotkeys-devtools
npm install @tanstack/preact-devtools @tanstack/preact-hotkeys-devtools
npm install @tanstack/solid-devtools @tanstack/solid-hotkeys-devtools
npm install @tanstack/vue-hotkeys-devtools
Angular does not currently ship a dedicated hotkeys devtools adapter.
import { TanStackDevtools } from '@tanstack/react-devtools'
import { hotkeysDevtoolsPlugin } from '@tanstack/react-hotkeys-devtools'
function App() {
return <TanStackDevtools plugins={[hotkeysDevtoolsPlugin()]} />
}
import { TanStackDevtools } from '@tanstack/preact-devtools'
import { hotkeysDevtoolsPlugin } from '@tanstack/preact-hotkeys-devtools'
export function App() {
return <TanStackDevtools plugins={[hotkeysDevtoolsPlugin()]} />
}
import { TanStackDevtools } from '@tanstack/solid-devtools'
import { hotkeysDevtoolsPlugin } from '@tanstack/solid-hotkeys-devtools'
export function App() {
return <TanStackDevtools plugins={[hotkeysDevtoolsPlugin()]} />
}
<script setup lang="ts">
import { HotkeysDevtoolsPanel } from '@tanstack/vue-hotkeys-devtools'
</script>
<template>
<AppContent />
<HotkeysDevtoolsPanel />
</template>
For React, Preact, and Solid, the Hotkeys panel appears alongside any other TanStack devtools plugins you have installed.
By default, the framework devtools adapters return no-op implementations in production builds so they do not affect your production bundle behavior.
React additionally exposes a production import when you explicitly want to include the plugin in production:
import { hotkeysDevtoolsPlugin } from '@tanstack/react-hotkeys-devtools/production'