monday-ui-react-core
Version:
Official monday.com UI resources for application development in React.js
15 lines (14 loc) • 431 B
TypeScript
import { KeyboardEventCallback } from "../types/events";
export declare function useKeyboard({ isDisabled, onKeyDown, onKeyUp }: {
isDisabled: boolean;
onKeyDown: KeyboardEventCallback;
onKeyUp: KeyboardEventCallback;
}): {
keyboardProps: {
onKeyDown?: undefined;
onKeyUp?: undefined;
} | {
onKeyDown: (e: UIEvent) => void;
onKeyUp: (e: UIEvent) => void;
};
};