react-input-groups

1.0.3 • Public • Published

react-input-groups

  • 仿支付宝微信密码输入框 钉钉验证码输入框

  • 使用方法

    #### 安装

    • npm install react-input-groups;
      

    #### 引入

    • import InputGroup from 'react-input-groups';
      import 'react-input-groups/lib/css/styles.css'
      
      export class Inputarea extends React.Component {
          constructor(props) {
              super(props);
              this.state = {
      
              };
              this.getValue = this.getValue.bind(this)
          }
          getValue(value) {
              console.log(value)
          }
          render() {
              return (
                <div>
                  <InputGroup
                      getValue={this.getValue}
                      length={4}
                      type={'box'}
                  />
                  <InputGroup
                      getValue={this.getValue}
                      length={4}
                      type={'line'}
                  />
                </div>
              );
          }
      }
      

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    39
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    39
  • 1.0.2
    2
  • 1.0.1
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i react-input-groups

Weekly Downloads

10

Version

1.0.3

License

MIT

Unpacked Size

62.1 kB

Total Files

12

Last publish

Collaborators

  • lifestyles