Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-virtual-keyboard-js
Advanced tools
Readme
React Virtual Keyboard is a small library for react developers who they need a customizable virtual keyboard for their applications.
For reporting issues or asking questions please use the github issues or contact skarimi68@gmail.com.
You can simply add this library to your react application using npm or yarn.
npm install react-virtual-keyboard-js
yarn add react-virtual-keyboard-js
After installing library, you can use VirtualKeyboard component in your application same as below:
import { VirtualKeyboard } from 'react-virtual-keyboard-js';
...
<VirtualKeyboard
className="virtualKeyboard"
value={text}
onChange={setText}
shuffleOn={["charkey", "start"]}
buttonProps={{
className: "btn",
activeClassName: "activeBtn",
}}
gap="10px"
/>
</div>
Prop | Options | Description |
---|---|---|
className | Optional, string | CSS class name to change keyboard pan |
value | Required, string | State value of keyboard |
onChange | Required, Function (value: string) => void | onChange method |
shuffleOn | Optional, Array of start , charkey , space , clear , tab , backspace , key | If this array includes one of these options, character keys will be shuffled on that event. for example start option shuffles keys on mount, tab option shuffles keys when tab key is pressed and key option shuffles them on each button. |
buttonProps | Optional, Object containing className and activeClassName | You can customize buttons based on your need using className. and add another style to shift button when it is pressed using activeClassName |
gap | Optional, string or number | This prop let you change the gap among buttons |
charKeys | Array of { c: string, s: string} | You will be able to change character keys of keyboard by providing an array of c as character and s as corresponding character which will be shown when shift is pressed. For example you can make Greek keyboard by providing an array of Greek alphabets |
FAQs
Virtual keyboard for react apps
The npm package react-virtual-keyboard-js receives a total of 0 weekly downloads. As such, react-virtual-keyboard-js popularity was classified as not popular.
We found that react-virtual-keyboard-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.