JSPM

react-aliyun-captcha

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

A ALiYun Captcha component for React

Package Exports

  • react-aliyun-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 (react-aliyun-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-aliyun-captcha

A ALiYun Captcha component for React

Installation

$ npm install --save react-aliyun-captcha

Usage

import ALiYunCaptcha from 'react-aliyun-captcha';

export default () => {
  const onCallback = result => console.log(result);

  return (
    <ALiYunCaptcha
      appKey="your-appKey"
      scene="your-scene"
      onCallback={onCallback}
    />
  );
};

Properties

  className:    PropTypes.string,
  cdn:          PropTypes.string,
  appKey:       PropTypes.string.isRequired,
  scene:        PropTypes.string.isRequired,
  width:        PropTypes.number,
  trans:        PropTypes.object,
  elementID:    PropTypes.array,
  isOpt:        PropTypes.number,
  language:     PropTypes.string,
  enabled:      PropTypes.bool,
  timeout:      PropTypes.number,
  times:        PropTypes.number,
  apiMap:       PropTypes.object,
  onCallback:   PropTypes.func,
  onReady:      PropTypes.func,

Read More

License

MIT