1.2.5 • Published 5 years ago
@gabtrompiz/react-verification-code-input v1.2.5
react-verification-code-input
🎉A verification code input
Forked
THIS IS A FORK FROM suweya's PACKAGE
Live demo
Install
npm install --save @gabtrompiz/react-verification-code-inputUsage
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 |
| fieldWidth | number | input width |
| fieldHeight | 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 |
| values | array | default values |
