react-aliyun-captcha
v1.0.2
Published
A ALiYun Captcha component for React
Downloads
21
Maintainers
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,
License
MIT