react-verification-code-input

前端 工具 / 组件
? React 验证码输入组件

react-verification-code-input

?A verification code input

NPM JavaScript Style Guide

NPM

Live demo

Install

npm install --save react-verification-code-input

Usage

import React, { Component } from 'react';

import ReactCodeInput from 'react-verification-code-input';

class Example extends Component {
  render() {
    return <ReactCodeInput />;
  }
}

PropTypes

Key Type Desc
type text one of number or text
fields number The count of characters
onChange func Trigger on character change
onComplete func Trigger on all character inputs
filedWidth number input width
filedHeight number input height
autoFocus bool auto focus first input on init
title string code input title
loading bool show loading flag
className string class name

License

MIT © suweya

react-verification-c... 相关推荐
对于该库,你有要推荐的内容么?点此提交推荐
请文明评论,与人为善,比聪明更重要!
评论