1.0.7 • Published 6 months ago

@types/react-virtual-keyboard v1.0.7

Weekly downloads
78
License
MIT
Repository
github
Last release
6 months ago

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

Credits

These definitions were written by Bogdan Surai.

1.0.7

6 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

3 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

7 years ago