An open API service indexing awesome lists of open source software.

https://github.com/xlsdg/react-geetest

A Geetest component for React
https://github.com/xlsdg/react-geetest

captcha geetest react react-component

Last synced: 12 months ago
JSON representation

A Geetest component for React

Awesome Lists containing this project

README

          

# react-geetest

> A Geetest component for React

## Installation

```bash
npm install react-geetest --save
```

## Usage

``` react
import Geetest from 'react-geetest';

export default () => {
const onSuccess = isSuccess => console.log(isSuccess);

return (

);
};
```

## Properties

``` javascript
className: PropTypes.string,
gt: PropTypes.string.isRequired,
challenge: PropTypes.string.isRequired,
offline: PropTypes.bool,
newCaptcha: PropTypes.bool,
product: PropTypes.string,
width: PropTypes.string,
lang: PropTypes.string,
https: PropTypes.bool,
timeout: PropTypes.number,
remUnit: PropTypes.number,
zoomEle: PropTypes.string,
hideSuccess: PropTypes.bool,
hideClose: PropTypes.bool,
hideRefresh: PropTypes.bool,
area: PropTypes.string,
nextWidth: PropTypes.string,
bgColor: PropTypes.string,
onReady: PropTypes.func,
onSuccess: PropTypes.func,
onError: PropTypes.func,
onClose: PropTypes.func,
```

[Read More](https://docs.geetest.com/sensebot/apirefer/api/web)

## License

MIT