Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xlsdg/react-yunpian-captcha
A YunPian Captcha component for React
https://github.com/xlsdg/react-yunpian-captcha
captcha react react-component yunpian
Last synced: about 1 month ago
JSON representation
A YunPian Captcha component for React
- Host: GitHub
- URL: https://github.com/xlsdg/react-yunpian-captcha
- Owner: xlsdg
- License: mit
- Created: 2019-07-22T13:29:42.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-09T07:41:43.000Z (about 5 years ago)
- Last Synced: 2024-11-30T13:49:28.810Z (about 1 month ago)
- Topics: captcha, react, react-component, yunpian
- Language: JavaScript
- Homepage: https://www.yunpian.com/doc/zh_CN/captcha/captcha_service.html
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-yunpian-captcha
> A YunPian Captcha component for React
## Installation
```bash
$ npm install --save react-yunpian-captcha
```## Usage
``` react
import YunPianCaptcha from 'react-yunpian-captcha';export default () => {
const onSuccess = (validInfo, close) => console.log(validInfo) || close();return (
);
};
```## Properties
``` javascript
className: PropTypes.string,
onSuccess: PropTypes.func.isRequired,
onFail: PropTypes.func,
onExit: PropTypes.func,
beforeStart: PropTypes.func,
afterStart: PropTypes.func,
expired: PropTypes.number,
jsonpField: PropTypes.string,
rsaPublicKey: PropTypes.string,
hosts: PropTypes.string,
appId: PropTypes.string.isRequired,
version: PropTypes.string.isRequired,
noButton: PropTypes.bool,
mode: PropTypes.string,
winWidth: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
lang: PropTypes.oneOf(['zh-cn', 'en']),
langPack: PropTypes.object,
```[Read More](https://www.yunpian.com/doc/zh_CN/captcha/captcha_service.html)
## License
MIT