JSPM

easy-react-captcha

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

    captcha component for react

    Package Exports

    • easy-react-captcha

    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 (easy-react-captcha) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    react-codebox

    验证码输入框的 React 实现.

    在线 demo

    Install

    yarn add @axetroy/react-codebox

    Usage

    import React, { Component } from "react";
    import Codebox from "@axetroy/react-codebox";
    
    class App extends Component {
      render() {
        return (
          <div>
            <Codebox
              type="text"
              length={4}
              validator={(input, index) => {
                return /\d/.test(input);
              }}
              onChange={codeArray => {
                console.log(codeArray);
              }}
            />
          </div>
        );
      }
    }

    License

    The MIT License