New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-persian-input

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-persian-input

Outline text input for right to left language like Persian ,Arabic and ...

latest
npmnpm
Version
1.1.2
Version published
Maintainers
1
Created
Source

react-persian-input

Full customizable outlined text input for right to left languages.

Installation

Open a Terminal in your project's folder and run:

npm i react-persian-input

Usage

  ...
  import {useState} from "react"
  import FaInput from "react-persian-input"
  const App = () => {
    ...
    const [inputValue,setInputValue] = useState("")
    const handleInputChange = (e) => {
      setInputValue(e.target.value)
    }
    return(
        ...
        <FaInput label="نام" value={inputValue} onInputChange={handleInputChange}/>
    )
   }

Props

PropDescriptionType:DefaultValue
labellabel of inputstring
widthwidth of inputstring
rtlinput text directionbool:false
valuevalue of text inputstring
labelStylestyle of label when it's not on focusobject
labelOnFocusStylestyle of label when it's on focusobject
borderStylestyle of border when it's not on focusobject
borderOnFocusStylestyle of border when it's on focusobject
inputStyleStyle of inputobject
moveLabelTopmove label to top when on focus (use negative number for move bottom)string:25px
moveLabelRightmove label to right when on focus (use negative number for move left)string:10px
scaleLabelscale label when of focusstring: .94

FAQs

Package last updated on 25 Apr 2021

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