Skip to content

HotkeyMeta

Defined in: hotkey.types.ts:318

Metadata for hotkey registrations, chords and sequences alike. Includes name, description, and group by default. Extend via declaration merging on the adapter package you import from. With pnpm, @tanstack/hotkeys itself can't be resolved from your app, so augmenting it fails.

Example

ts
declare module '@tanstack/react-hotkeys' {
  interface HotkeyMeta {
    category?: string
    icon?: string
  }
}

Properties

description?

ts
optional description?: string;

Defined in: hotkey.types.ts:322

Description of what this hotkey does


group?

ts
optional group?: string;

Defined in: hotkey.types.ts:324

Optional display group. Does not affect matching or scope.


name?

ts
optional name?: string;

Defined in: hotkey.types.ts:320

Human-readable name for this hotkey (e.g., "Save Document")