1.0.7 • Published 6 months ago
@types/react-virtual-keyboard v1.0.7
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.
index.d.ts
// Type definitions for react-virtual-keyboard 1.0
// Project: https://github.com/utzel-butzel/react-virtual-keyboard
// Definitions by: Bogdan Surai <https://github.com/bsurai>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import { Component } from "react";
import { KeyboardOptions, NavigateOptions } from "virtual-keyboard";
export interface ReactKeyboardOptions extends KeyboardOptions {
accepted?: undefined; // You should use KeyboardProps.onAccepted event.
}
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
- Last updated: Thu, 08 Jul 2021 22:41:43 GMT
- Dependencies: @types/react, @types/virtual-keyboard
- Global values: none
Credits
These definitions were written by Bogdan Surai.