Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
Neon
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Hotkeys API Reference
App Hotkeys API Reference
Key hold & held keys API Reference
Hotkey Recorder API Reference
Normalization & format API Reference

WithTarget

ts
type WithTarget<TOptions, TTarget> = Omit<TOptions, "target" | "appHotkeyId"> & object;
type WithTarget<TOptions, TTarget> = Omit<TOptions, "target" | "appHotkeyId"> & object;

Defined in: adapter.ts:155

Options with a framework-specific target, such as a ref.

Type Declaration

target?

ts
optional target?: TTarget;
optional target?: TTarget;

The element to listen on. Defaults to document.

Type Parameters

TOptions

TOptions

TTarget

TTarget