Installation
npm install --save @types/react-virtual-keyboard
Summary
This package contains type definitions for react-virtual-keyboard (https://github.com/utzel-butzel/react-virtual-keyboard).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-virtual-keyboard.
import { Component } from "react";
import { KeyboardOptions, NavigateOptions } from "virtual-keyboard";
export interface ReactKeyboardOptions extends KeyboardOptions {
accepted?: undefined;
}
export type kbEvents = (event?: string | Event, keyboard?: Element, el?: Element) => void;
export interface KeyboardProps {
name?: string | undefined;
value?: string | undefined;
options?: ReactKeyboardOptions | undefined;
onAccepted?: kbEvents | undefined;
onChange?: kbEvents | undefined;
callbackParent?: kbEvents | undefined;
placeholder?: string | undefined;
}
export interface KeyboardState {
value: string;
className: string;
}
export default class Keyboard extends Component<KeyboardProps, KeyboardState> {}
Additional Details
Credits
These definitions were written by Bogdan Surai.