UNPKG

@tanstack/react-hotkeys

Version:

React adapter for TanStack Hotkeys

14 lines (11 loc) • 207 B
'use client'; import { useHotkeys } from "./useHotkeys.js"; // src/useHotkey.ts function useHotkey(hotkey, callback, options) { useHotkeys([{ hotkey, callback, options }]); } export { useHotkey };