# AlpineCreateHotkey

<!-- DO NOT EDIT: this page is autogenerated from the type comments -->

Defined in: [types.ts:76](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L76)

Registers a hotkey: a chord, a sequence, or an app hotkey.

```ts
AlpineCreateHotkey<T>(
   hotkey, 
   callback, 
   options?
): void;
```

Defined in: [types.ts:77](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/types.ts#L77)

Registers a hotkey: a chord, a sequence, or an app hotkey.

## Type Parameters

### T

`T` *extends* `AdapterHotkeyInput`

## Parameters

### hotkey

`IfTypeParameter`\<`T`, `MaybeGetter`\<`T` \| `null` \| `undefined`\>, `KnownHotkey`\<`T`, `MaybeGetter`\<`T` \| `null` \| `undefined`\>\>\>

### callback

`HotkeyCallback`\<`IfTypeParameter`\<`T`, `HotkeyCallbackContext`, `AdapterCallbackContextFor`\<`T`\>\>\>

### options?

`IfTypeParameter`\<`T`, `MaybeGetter`\<`AdapterHotkeyOptions`\<[`AlpineHotkeyTarget`](../type-aliases/AlpineHotkeyTarget.md)\>\>, `MaybeGetter`\<\[`T`\] *extends* \[`AppHotkey`\<`string`, `AppHotkeyBinding`\>\] ? `AdapterAppHotkeyOptions`\<`Extract`\<`T`, `AppHotkey`\<`string`, `AppHotkeyBinding`\>\>, [`AlpineHotkeyTarget`](../type-aliases/AlpineHotkeyTarget.md)\> : `AdapterOptionsFor`\<`T`, [`AlpineHotkeyTarget`](../type-aliases/AlpineHotkeyTarget.md)\>\>\>

## Returns

`void`
