5.0.1 • Published 4 years ago

react-geetest v5.0.1

Weekly downloads
159
License
MIT
Repository
github
Last release
4 years ago

react-geetest

A Geetest component for React

Installation

npm install react-geetest --save

Usage

import Geetest from 'react-geetest';

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

  return (
    <Geetest
      gt="your-gt"
      challenge="your-challenge"
      onSuccess={onSuccess}
    />
  );
};

Properties

  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

License

MIT

5.0.1

4 years ago

5.0.0

4 years ago

4.0.3

5 years ago

4.0.2

5 years ago

4.0.1

5 years ago

4.0.0

5 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.2.2

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.0.2

6 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.1

8 years ago