Socket
Book a DemoInstallSign in
Socket

@uiwwsw/virtual-keyboard

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uiwwsw/virtual-keyboard

**A revolutionary virtual keyboard solution for React that solves the Korean `composition` issue.**

0.3.7
latest
npmnpm
Version published
Weekly downloads
4
-69.23%
Maintainers
1
Weekly downloads
 
Created
Source

virtual-keyboard

A revolutionary virtual keyboard solution for React that solves the Korean composition issue.

npm version Publish License Stars

Virtual Keyboard Banner

Visit the Demo →

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.

Key Features

  • Composition-Free Input: Directly handles Korean character composition, bypassing native IME events to prevent common bugs.
  • 🎹 Customizable Keyboard UI: Provides a default keyboard and supports fully custom layouts for any use case (e.g., number pads, phone keypads).
  • 📱 Mobile-First: Blocks the native mobile keyboard for a consistent and controlled user experience in web apps.
  • ⚛️ React-Friendly API: Simple, component-based architecture using Provider and Input for easy integration.

Installation

npm install @uiwwsw/virtual-keyboard

Usage

Wrap your input fields with the VirtualInputProvider. This provider manages the keyboard's state and renders the UI.

Basic Usage

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>
  );
}

Custom Layout

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>
  );
}

Components API

<VirtualInputProvider />

The main provider that manages the keyboard state and UI.

PropTypeDescription
layoutKey[][][] (optional)A 2D array to define a custom keyboard layout.
childrenReactNodeMust 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.

Star History

Star History Chart

Contributors

contributors

License

MIT

Keywords

한글

FAQs

Package last updated on 20 Jul 2025

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.