react-necaptcha
v3.0.3
Published
A NECaptcha component for React
Downloads
122
Maintainers
Readme
react-necaptcha
A NECaptcha component for React
Installation
$ npm install react-necaptcha --save
Usage
import NECaptcha from 'react-necaptcha';
export default () => {
const onLoad = instance => console.dir(instance);
return (
<NECaptcha
captchaId="your-captchaId"
onLoad={onLoad}
/>
);
};
Properties
className: PropTypes.string,
captchaId: PropTypes.string.isRequired,
mode: PropTypes.string,
protocol: PropTypes.string,
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
lang: PropTypes.string,
appendTo: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
onLoad: PropTypes.func,
onError: PropTypes.func,
onReady: PropTypes.func,
onVerify: PropTypes.func,
onClose: PropTypes.func,
License
MIT