Hotkeys Docs
Examples
- Kitchen Sink
- App Hotkeys
- Accessibility
- Scopes
- useHotkey
- useHotkey (sequences)
- useHotkey (platforms and alternates)
- useHotkeys
- useHotkeys (sequences)
- useHotkeyRecorder
- useHotkeyRecorder (sequences)
- useHeldKeys
- useKeyHold
- useKeyLockState
- useFormatForDisplay (server rendering)
- useFormatForDisplay (Astro)
- Keyboard Layouts
Octane Example: UseFormatForDisplay Astro
import { HotkeysProvider } from '@tanstack/octane-hotkeys'
import { CheatSheetPage } from '../CheatSheetPage.tsrx'
import type { HotkeyPlatform } from '@tanstack/octane-hotkeys'
// Each island is its own Octane app, so the provider renders inside it
export function Shortcuts({ platform }: { platform: HotkeyPlatform }) @{
<HotkeysProvider defaultOptions={{ platform }}>
<CheatSheetPage />
</HotkeysProvider>
}