Hooks & Utilities
v1.0.0Added in 1.0.0
Keyboard shortcuts in mod+k notation: bind them, match events and show them as ⌘K on a Mac or Ctrl+K elsewhere.
Press the shortcuts listed in the panel: the matching row lights up and the log says what ran. Type a combo into the playground (mod+k, shift+?, alt+n) to bind it live and see how it reads on Apple devices and everywhere else. Single keys like / stay quiet while you type in the search field; combos with a modifier still work there.
npx wingo-ui@latest add use-shortcutOn a Mac⌘KWindows and LinuxCtrl+K
Press a shortcut