Socket
Socket
Sign inDemoInstall

@register-ui/keyboard-base

Package Overview
Dependencies
0
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @register-ui/keyboard-base

Virtual Keyboard Building Blocks


Version published
Weekly downloads
21
Maintainers
1
Install size
1.12 MB
Created
Weekly downloads
 

Readme

Source

Virtual Keyboard Blocks

Building blocks for virtual keyboard components

These are building blocks for making efficient user-interfaces that utilize virtual keyboard components to handle user input. They are composable, and allow for both a global keyboard, and contextual keyboards that simply need to share a parent element.

example:

<head>
  <script src="https://unpkg.com/@register-ui/keyboard-base@latest/dist/register-keyboard/register-keyboard.js"></script>
</head>
<body>
  <input class="global-keyboard" name="test-input" />
  <div style="padding: 24px; background: #eaeaea">
    <!-- Isolated Keyboard (only handles inputs within this parent) -->

    <input class="local-keyboard" name="test-input-2" />
    <br />

    <reg-keyboard global='false'>
      <reg-keyboard-button button-name="A" press-action="add" add-value="A">A</reg-keyboard-button>
    </reg-keyboard>

  </div>
  <!-- Global Keyboard (handles inputs within entire app, besides ones controlled by local keyboards) -->
  <reg-keyboard global="true">
    <reg-keyboard-button button-name="A" press-action="add" add-value="A">A</reg-keyboard-button>
  </reg-keyboard>

  <!-- Global Keyboard using the keyboard-layout component to generate the keys. -->
  <reg-keyboard global="true">
    <reg-keyboard-layout language="english" layout="condensed"></reg-keyboard-layout>
  </reg-keyboard>
</body>

Keyboard Component

Keyboard Component Documentation

Keyboard-Button Component

Keyboard-Button Component Documentation

Keyboard-Layout Component

Keyboard-Layout Component Documentation

FAQs

Last updated on 24 Mar 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc