Teclado Virtual para React js. Compatible con Javascript, React Js y Typescript.
Installation
with npm
npm i virtual-keyboard-react-simple --save
with yarn
yarn add virtual-keyboard-react-simple
Demo
Clone este repositorio Demo Keyboard
Usage
import React, { useRef, useState } from 'react';
import { Keyboard } from 'virtual-keyboard-react-simple/src/keyboard';
const KeyboarComponent = () => <Keyboard />;
Props
The props here are specific to this component, but one can pass any props to the tag, eg onClick, inputRef, backgroundStyle, etc.
prop | type | default | notes |
---|---|---|---|
onClick | function | true | callback para recibir el nuevo texto. |
inputRef | input | true | contiene el ref del input. |
backgroundStyle | Object | true | contiene el style del background del teclado. |
backgroundButtonStyle | Object | false | contiene el style de background de los botones del teclado (Optional). |
backgroundButtonSpaceStyle | Object | false | contiene el style del botón de espacio (Optional). |
🎯 Compatibility
- Internet Explorer 11+
- Edge 16+
- Edge (Anaheim/Edge Chromium) 79+
- Chrome 49+
- Safari 9+
- Firefox 57+
Constribuciones
Los problemas siempre son bienvenidos. Siéntase libre de enviar cualquier problema que tenga en: https://github.com/DIGITAL-SOFT-PTY/virtual-keyboard-react-simple/issues