puzzle-captcha-uz
v1.2.2
Published
Puzzle Captcha for React
Maintainers
Readme
Puzzle CAPTCHA for ReactJS
A simple and interactive puzzle CAPTCHA component for React applications.
Installation
Install the package using npm or yarn:
npm install puzzle-captcha-uzor
yarn add puzzle-captcha-uzUsage
Import and use the GetCaptcha component in your React application:
import React from 'react'
import { GetCaptcha } from "puzzle-captcha-uz";
const App = () => {
const itemKey = "a10a41a29d37c29a77a97de89028bbc";
const [result, setResult] = useState({ captchaId: "", captchaValue: "" });
const handleResult = (data) => {
setResult(data);
};
return (
<div>
<GetCaptcha itemKey={itemKey} onResultReceive={handleResult} width="300px" />
</div>
)
}
export default AppProps
| Prop | Type | Description |
|------------|---------|--------------------------------------------------|
| GetCaptcha | component | Component that fetches and displays a new CAPTCHA challenge.|
Features
- Drag-and-drop puzzle verification
- Customizable images
- Easy-to-use React component
License
This project is licensed under the ISC License.
