react-individual-input-box
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

react-individual-input-box

React component for individual character input box

NPM JavaScript Style Guide

Example

Install

npm install --save react-individual-input-box

Usage

import * as React from "react";

import InputBox from "react-individual-input-box";

class Example extends React.Component {
  render() {
    return (
      <InputBox
        size={4}
        value={this.value}
        onChange={() => this.onChange()}
        isPassword
        onlyNumbers
      />
    );
  }
}

Props

Common props you may want to specify include:

  • size - number of input boxes
  • value - control the current value
  • isPassword - apply password dots to hide input data
  • onlyNumber - allow only numbers
  • isConfirmInput - allow use the input box component two times in screent as a confirm data input
  • onChange - subscribe to change events

License

MIT © lucasga

Readme

Keywords

none

Package Sidebar

Install

npm i react-individual-input-box

Weekly Downloads

1

Version

1.0.9

License

MIT

Unpacked Size

101 kB

Total Files

10

Last publish

Collaborators

  • lucasga