UNPKG

@thind9xdev/react-turnstile

Version:

A modern React library for Cloudflare Turnstile, offering both a flexible Hook (useTurnstile) and an easy-to-use Component.

14 lines 554 B
import React from 'react'; import { TurnstileOptions } from '../hooks/useTurnstile'; export interface TurnstileComponentProps extends TurnstileOptions { siteKey: string; className?: string; style?: React.CSSProperties; } export interface TurnstileComponentRef { reset: () => void; execute: () => void; getResponse: () => string | null; } export declare const TurnstileComponent: React.ForwardRefExoticComponent<TurnstileComponentProps & React.RefAttributes<TurnstileComponentRef>>; //# sourceMappingURL=TurnstileComponent.d.ts.map