# @types/react-keyboard-event-handler

> TypeScript definitions for react-keyboard-event-handler

Latest version **1.5.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-keyboard-event-handler
pnpm add @types/react-keyboard-event-handler
yarn add @types/react-keyboard-event-handler
bun add @types/react-keyboard-event-handler
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.5.4 |
| Published | 2023-11-07 |
| First published | 2021-04-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51444 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-keyboard-event-handler
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-keyboard-event-handler
- npm.io page: https://npm.io/package/@types/react-keyboard-event-handler

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 1.5.4 (latest) — 2023-11-07
- 1.5.2 (ts3.7) — 2021-10-21
- 1.5.1 (ts3.6) — 2021-07-08
- 1.5.0 (ts3.5) — 2021-04-06
- 1.5.3 — 2023-10-18

## README

# Installation
> `npm install --save @types/react-keyboard-event-handler`

# Summary
This package contains type definitions for react-keyboard-event-handler (https://github.com/linsight/react-keyboard-event-handler).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-keyboard-event-handler.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-keyboard-event-handler/index.d.ts)
````ts
import * as React from "react";

declare namespace KeyboardEventHandler {
    interface KeyboardEventHandlerProps {
        handleKeys?: readonly string[] | undefined;
        handleEventType?: "keydown" | "keyup" | "keypress" | undefined;
        handleFocusableElements?: boolean | undefined;
        onKeyEvent?: ((key: string, event: KeyboardEvent) => void) | undefined;
        isDisabled?: boolean | undefined;
        isExclusive?: boolean | undefined;
        children?: React.ReactNode | undefined;
    }
}

declare const KeyboardEventHandler: React.FC<KeyboardEventHandler.KeyboardEventHandlerProps>;
export = KeyboardEventHandler;
export as namespace KeyboardEventHandler;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Jamie Gerrard Lievesley](https://github.com/jamiegluk).

---
_Source: https://npm.io/package/@types/react-keyboard-event-handler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
