@types/react-virtual-keyboard
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

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

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

Credits

These definitions were written by Bogdan Surai.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-virtual-keyboard

Weekly Downloads

1,449

Version

1.0.7

License

MIT

Unpacked Size

4.46 kB

Total Files

5

Last publish

Collaborators

  • types