0.2.8 • Published 2 months ago

arabic-virtual-keyboard v0.2.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 months ago

Arabic Virtual Keyboard

About

Arabic Virtual Keyboard is a tool that helps english speakers write in Arabic without having a dedicated arabic keyboard.

The keyboard is fully featured and contains support for all letters, numbers, special characters, diacritical marks, and text to speech.

View Demo Here

Documentation

This keyboard was built as a web component and is fully compatiable with your JS, React, Angular or Vue projects.

You can use arabic-virtual-keyboard as a tag from a CDN, or install it from npm.

Installation Via NPM

npm i arabic-virtual-keyboard

Installation Via CDN

<script type="module" src="https://cdn.jsdelivr.net/npm/arabic-virtual-keyboard/+esm"></script>

Usage

<div>
  <arabic-keyboard></arabic-keyboard>
</div>

Usage in React

This requires use of the @lit/react package

npm install @lit/react

import React from 'react';

import { ArabicKeyboard as ArabicKeyboardWC } from 'arabic-virtual-keyboard'
import {createComponent} from '@lit/react';

const ArabicKeyboard = createComponent({
  tagName: 'arabic-keyboard',
  elementClass: ArabicKeyboardWC,
  react: React,
});

function App() {
  return (
    <div>
      <ArabicKeyboard showEnglishValue="true" showShiftedValue="true"></ArabicKeyboard>
    </div>
  )
}

export default App

Attributes

showEnglishValue -> show transliterated english key showShiftedValue -> show shifted value of key

AttributeDefault
showEnglishValuefalse
showShiftedValuefalse

Usage With Attributes

<div>
  <arabic-keyboard showEnglishValue="true" showShiftedValue="true">
  </arabic-keyboard>
</div>

Styling

Restyle the keyboard by utilizing css custom properties

PropertyDefault
--keyboard-row-gap4px
--font-size18px
--max-keyboard-width800px
--row-height50px
--border-radius4px
--button-background-color#ececec
--border1px solid #999999
--button-active-background-color#d6d6d6
--button-active-border1px solid #8f8f8f
--button-padding4px
--button-color#000000
--button-shifted-color#ff0000
--button-eng-color#0000ff
--button-hover-background-color#e0e0e0
--textarea-background-color#ffffff
--font-family"Arial", sans-serif
0.2.8

2 months ago

0.2.7

2 months ago

0.2.6

2 months ago

0.2.3

2 months ago

0.2.2

2 months ago

0.2.5

2 months ago

0.2.4

2 months ago

0.2.1

5 months ago

0.2.0

5 months ago

0.1.8

5 months ago

0.1.7

5 months ago

0.1.9

5 months ago

0.1.6

5 months ago

0.1.5

5 months ago

0.1.4

5 months ago

0.1.2

5 months ago

0.1.3

5 months ago

0.1.1

5 months ago

0.1.0

5 months ago