# createHotkeyRecorder

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

## Call Signature

```ts
function createHotkeyRecorder(owner, options): AlpineHotkeyRecorder<HotkeyChord>;
```

Defined in: [createHotkeyRecorder.ts:19](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/createHotkeyRecorder.ts#L19)

Creates a recorder owned by a `createHotkeysScope` owner. It uses the
owner's `hotkeyRecorder` defaults, and options can follow Alpine state.
`maxSteps` (default 1) selects chords or sequences.

### Parameters

#### owner

[`AlpineHotkeys`](../interfaces/AlpineHotkeys.md)

#### options

`HotkeyChordRecorderOptions`

### Returns

[`AlpineHotkeyRecorder`](../interfaces/AlpineHotkeyRecorder.md)\<`HotkeyChord`\>

## Call Signature

```ts
function createHotkeyRecorder(owner, options): AlpineHotkeyRecorder;
```

Defined in: [createHotkeyRecorder.ts:23](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/createHotkeyRecorder.ts#L23)

Creates a recorder owned by a `createHotkeysScope` owner. It uses the
owner's `hotkeyRecorder` defaults, and options can follow Alpine state.
`maxSteps` (default 1) selects chords or sequences.

### Parameters

#### owner

[`AlpineHotkeys`](../interfaces/AlpineHotkeys.md)

#### options

`HotkeySequenceRecorderOptions`

### Returns

[`AlpineHotkeyRecorder`](../interfaces/AlpineHotkeyRecorder.md)

## Call Signature

```ts
function createHotkeyRecorder(owner, options): AlpineHotkeyRecorder;
```

Defined in: [createHotkeyRecorder.ts:29](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/createHotkeyRecorder.ts#L29)

Creates a recorder owned by a `createHotkeysScope` owner. It uses the
owner's `hotkeyRecorder` defaults, and options can follow Alpine state.
`maxSteps` (default 1) selects chords or sequences.

### Parameters

#### owner

[`AlpineHotkeys`](../interfaces/AlpineHotkeys.md)

#### options

() => `HotkeySequenceRecorderOptions`

### Returns

[`AlpineHotkeyRecorder`](../interfaces/AlpineHotkeyRecorder.md)

## Call Signature

```ts
function createHotkeyRecorder(owner, options): AlpineHotkeyRecorder<HotkeyChord>;
```

Defined in: [createHotkeyRecorder.ts:33](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/createHotkeyRecorder.ts#L33)

Creates a recorder owned by a `createHotkeysScope` owner. It uses the
owner's `hotkeyRecorder` defaults, and options can follow Alpine state.
`maxSteps` (default 1) selects chords or sequences.

### Parameters

#### owner

[`AlpineHotkeys`](../interfaces/AlpineHotkeys.md)

#### options

() => `HotkeyChordRecorderOptions`

### Returns

[`AlpineHotkeyRecorder`](../interfaces/AlpineHotkeyRecorder.md)\<`HotkeyChord`\>

## Call Signature

```ts
function createHotkeyRecorder(owner, options): AlpineHotkeyRecorder;
```

Defined in: [createHotkeyRecorder.ts:37](https://github.com/TanStack/hotkeys/blob/main/packages/alpine-hotkeys/src/createHotkeyRecorder.ts#L37)

Creates a recorder owned by a `createHotkeysScope` owner. It uses the
owner's `hotkeyRecorder` defaults, and options can follow Alpine state.
`maxSteps` (default 1) selects chords or sequences.

### Parameters

#### owner

[`AlpineHotkeys`](../interfaces/AlpineHotkeys.md)

#### options

() => `HotkeyRecorderOptions`

### Returns

[`AlpineHotkeyRecorder`](../interfaces/AlpineHotkeyRecorder.md)
