1.0.2 • Published 5 years ago

react-aliyun-captcha v1.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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