tanstack-hotkeys
Installation
SKILL.md
TanStack Hotkeys (React)
Type-safe keyboard shortcut management for React. Package: @tanstack/react-hotkeys.
All framework packages re-export everything from @tanstack/hotkeys core — no separate install needed.
Quick Start
import { useHotkey } from '@tanstack/react-hotkeys'
function App() {
useHotkey('Mod+S', () => saveDocument())
return <div>Press Cmd+S (Mac) or Ctrl+S (Windows) to save</div>
}
Mod resolves to Meta (Cmd) on macOS, Control on Windows/Linux.