1.0.8 • Published 4 years ago

nepalify-react v1.0.8

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

Nepalify-React

npm version GitHub contributors

React library to key map to preeti or unicode. This library provides an <input type ="text"> input field which converts preeti or unicode typing into nepali texts. Click here for preeti keyboard layout and click here for unicode keyboard layout. The input and output from the library can be seen in the figure below.

Loading1 Loading2

Download using npm (https://www.npmjs.com/package/nepalify-react)
  • using npm install by using npm i nepalify-react
  • using yarn install by using yarn add nepalify-react

Usage:

import React, { Component, Fragment } from 'react';
import Nepali from 'nepalify-react';
    
export class App extends Component {
  render() {
    return (
      <Fragment>
        <Nepali funcname="preetify" />  //For Preeti mapping
        <Nepali funcname="unicodify" />  //For Unicode mapping
      </Fragment>
    );
  }
}

API Details:

Nepalify Component import Nepalify from 'nepalify-react'

PropsValueDefaultDescription
funcnamepreetify or unicodifyunicodifyWhich type of key mapping to use. Traditional Unicode mapping or Romanized Unicode Mapping
valueChangecallback function. (event, value) => {}nullcallback function to call instead of react's onChange function
inputTypetextarea or texttexttype of the input field to apply react nepalify for
initialValueStringEmpty StringSet intialValue of input field.
valueStringEmpty StringTo be used as controlled input element in combination with valueChange

Note:

You can add other props as per your requirements except given in API which will be passed to underlying input element.

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago