JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 22815
  • Score
    100M100P100Q138362F
  • License MIT

🎉A verification code input

Package Exports

  • react-verification-code-input

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-verification-code-input) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-verification-code-input

🎉A verification code input

NPM JavaScript Style Guide

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
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

License

MIT © suweya