# HotkeyLayer

Source: /tuil/docs/reference/packages/hotkeys/api/hotkey-layer
Locale: en

function exported by @mwillbanks/tuil-hotkeys.



{/* Generated by tooling/docs/generate-reference.ts. */}

## function [#function]

Public function exported by `@mwillbanks/tuil-hotkeys`.

```ts
export function HotkeyLayer(props: {
  readonly scope: "overlay" | "dialog";
  readonly scopeId: string;
  readonly children?: ReactNode;
}): ReactNode;
```

## Members [#members]

This declaration has no public members.

## Parameters [#parameters]

| Member  | Type                                                                                                                  | Required | Description                                                                                                                                          | Related types |
| ------- | --------------------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- |
| `props` | `&#123;   readonly scope: "overlay" \| "dialog";   readonly scopeId: string;   readonly children?: ReactNode; &#125;` | Yes      | Supplies the `props` value as `&#123;   readonly scope: "overlay" \| "dialog";   readonly scopeId: string;   readonly children?: ReactNode; &#125;`. | —             |

## Returns [#returns]

`ReactNode` — Returns a value that satisfies `ReactNode`.

Related types: —

## Throws [#throws]

No thrown errors are documented for this declaration.

## Related types [#related-types]

No package-local related types.

## Source [#source]

[View the secondary source reference](https://github.com/mwillbanks/tuil/blob/main/packages/hotkeys/src/index.ts)

## Package [#package]

[@mwillbanks/tuil-hotkeys](/tuil/docs/reference/packages/hotkeys)
