react-captcha-refreshed
v0.0.2
Published
Simple captcha library for React
Downloads
4
Readme
react-captcha-refreshed
Simple captcha library for React.
Shout out to...
Usage
API
The library consist of the hook useCaptchaValue
and the component CaptchaCanvas
.
| Prop | Description | Default | Required |
| --------------- | ------------------------------------------------------------- | ------- | -------- |
| captchaValue | Value of the captcha text given by the useCaptchaValue
hook | | Yes |
| backgroundColor | Background color of the captcha canvas | black | No |
| textColor | Color of the captcha text | white | No |
| decoyTextColor | Color of the decoy text | #afafaf | No |
| decoyTextLength | Length of the decoy text | 4 | No |
| width | Width of the captcha canvas and resulted image | 300 | No |
| height | Height of the captcha canvas and redulted image | 100 | No |