@tanstack/react-hotkeys
Version:
React adapter for TanStack Hotkeys
12 lines • 513 B
TypeScript
import { formatForDisplay } from "@tanstack/hotkeys";
/**
* Formats a hotkey as a label, without the provider's platform or the user's
* keyboard layout.
*
* @deprecated Use `useFormatForDisplay()` in components. It returns this
* function with the provider's platform and the user's keyboard layout filled
* in. Outside a component, keep calling this function and pass `platform`
* yourself.
*/
declare const formatForDisplay$1: typeof formatForDisplay;
export { formatForDisplay$1 as formatForDisplay };