LogoBetter Captcha
Provider

Turnstile

Cloudflare Turnstile provider for bot protection

About Turnstile

Cloudflare Turnstile is a privacy-focused CAPTCHA alternative that automatically verifies users without interactive challenges, enhancing user experience while maintaining security.

For more information, visit the official Cloudflare Turnstile documentation.

Showcase

Usage

import { Turnstile } from "@better-captcha/react/provider/turnstile";

<Turnstile sitekey="1x00000000000000000000AA" options={{}} />
import { component$ } from "@builder.io/qwik";
import { Turnstile } from "@better-captcha/qwik/provider/turnstile";

export default component$(() => (
  <Turnstile sitekey="1x00000000000000000000AA" options={{}} />
));
import { Turnstile } from "@better-captcha/solidjs/provider/turnstile";

<Turnstile sitekey="1x00000000000000000000AA" options={{}} />
<template>
  <Turnstile
    sitekey="1x00000000000000000000AA"
    :options="{ theme: 'dark' }"
  />
</template>

<script setup lang="ts">
import { Turnstile } from "@better-captcha/vue/provider/turnstile";
</script>
<script lang="ts">
import Turnstile from "@better-captcha/svelte/provider/turnstile";
</script>

<Turnstile sitekey="1x00000000000000000000AA" options={{}} />

Provider Options

Prop

Type

Imperative Handle Functions

Prop

Type