1.0.9 • Published 4 years ago

react-individual-input-box v1.0.9

Weekly downloads
527
License
MIT
Repository
github
Last release
4 years ago

react-individual-input-box

React component for individual character input box

NPM JavaScript Style Guide

Example

npm.io

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

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago