
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@uiwwsw/virtual-keyboard
Advanced tools
**A revolutionary virtual keyboard solution for React that solves the Korean `composition` issue.**
A revolutionary virtual keyboard solution for React that solves the Korean composition
issue.
virtual-keyboard
is a React component library that provides a custom virtual keyboard and input field, specifically designed to solve the infamous Korean composition
event issues in web environments. It offers a seamless and native-like typing experience, free from common bugs like character duplication, cursor jumping, and broken compositions.
Provider
and Input
for easy integration.npm install @uiwwsw/virtual-keyboard
Wrap your input fields with the VirtualInputProvider
. This provider manages the keyboard's state and renders the UI.
Use the default QWERTY keyboard for Korean and English input.
import { VirtualInput, VirtualInputProvider } from "@uiwwsw/virtual-keyboard";
function App() {
return (
<VirtualInputProvider>
<p>Your virtual input is here:</p>
<VirtualInput placeholder="텍스트를 입력하세요..." />
</VirtualInputProvider>
);
}
You can provide a custom layout for specialized inputs, such as a number pad for phone numbers.
import { VirtualInput, VirtualInputProvider } from "@uiwwsw/virtual-keyboard";
const numberPadLayout = [
[{ value: "1" }, { value: "2" }, { value: "3" }],
[{ value: "4" }, { value: "5" }, { value: "6" }],
[{ value: "7" }, { value: "8" }, { value: "9" }],
// You can define special keys like 'Backspace'
[{ value: "010" }, { value: "0" }, { value: "Backspace", type: "action" }],
];
function App() {
return (
<VirtualInputProvider layout={numberPadLayout}>
<p>Enter your phone number:</p>
<VirtualInput placeholder="010-0000-0000" />
</VirtualInputProvider>
);
}
<VirtualInputProvider />
The main provider that manages the keyboard state and UI.
Prop | Type | Description |
---|---|---|
layout | Key[][][] (optional) | A 2D array to define a custom keyboard layout. |
children | ReactNode | Must contain at least one VirtualInput component. |
<VirtualInput />
The replacement for the standard <input>
element. It accepts all standard input element props like value
, defaultValue
, placeholder
, onChange
, etc.
FAQs
**A revolutionary virtual keyboard solution for React that solves the Korean `composition` issue.**
The npm package @uiwwsw/virtual-keyboard receives a total of 3 weekly downloads. As such, @uiwwsw/virtual-keyboard popularity was classified as not popular.
We found that @uiwwsw/virtual-keyboard 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.