# FormatAriaOptions

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

Defined in: [format.ts:309](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L309)

Options for formatting a hotkey for `aria-keyshortcuts`.

## Properties

### layoutMap?

```ts
optional layoutMap?: object;
```

Defined in: [format.ts:320](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L320)

An already-resolved code-to-key map, such as KeyboardLayoutMap or Map.
Used only for physical bindings, to name the key the user presses.
Missing or empty entries use the key at that position on a US keyboard.

#### get

```ts
get: (code) => string | undefined;
```

##### Parameters

###### code

`string`

##### Returns

`string` \| `undefined`

***

### platform?

```ts
optional platform?: HotkeyPlatform;
```

Defined in: [format.ts:314](https://github.com/TanStack/hotkeys/blob/main/packages/hotkeys/src/format.ts#L314)

The target platform, for resolving `Mod`. Without it, `formatForAria`
detects the platform in the browser and uses `'linux'` on a server.
