# react-yunpian-captcha **Repository Path**: mirrors_xlsdg/react-yunpian-captcha ## Basic Information - **Project Name**: react-yunpian-captcha - **Description**: A YunPian Captcha component for React - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-03-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## 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