1 | import * as React from "react";
|
2 | import { HotkeyConfig, UseHotkeysOptions } from "../../hooks";
|
3 |
|
4 | export interface HotkeysTarget2RenderProps {
|
5 | handleKeyDown: React.KeyboardEventHandler<HTMLElement>;
|
6 | handleKeyUp: React.KeyboardEventHandler<HTMLElement>;
|
7 | }
|
8 | export interface HotkeysTarget2Props {
|
9 | |
10 |
|
11 |
|
12 |
|
13 | children: JSX.Element | ((props: HotkeysTarget2RenderProps) => JSX.Element);
|
14 | /** Hotkey definitions. */
|
15 | hotkeys: readonly HotkeyConfig[];
|
16 | /** Hook customization options. */
|
17 | options?: UseHotkeysOptions;
|
18 | }
|
19 | /**
|
20 | * Utility component which allows consumers to use the new `useHotkeys` hook inside
|
21 | * React component classes. The implementation simply passes through to the hook.
|
22 | */
|
23 | export declare const HotkeysTarget2: ({ children, hotkeys, options }: HotkeysTarget2Props) => JSX.Element;
|