File tree Expand file tree Collapse file tree 5 files changed +425
-5
lines changed Expand file tree Collapse file tree 5 files changed +425
-5
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " qwik-turnstile " : patch
3+ ---
4+
5+ Captilize props type
Original file line number Diff line number Diff line change 1-
2-
31<h1 align =' center ' >Qwik Turnstile</h1 >
42<p align =" center " >
53 <img width =" 400 " src =" ./media/turnstile.gif " alt =" Cloudflare Turnstile " >
2119
2220</div >
2321
22+ <!-- toc -->
23+
24+ - [ Installation] ( #installation )
25+ - [ Usage] ( #usage )
26+ * [ Examples] ( #examples )
27+ * [ 🦜 ` useTurnstile() ` hook] ( #%F0%9F%A6%9C-useturnstile-hook )
28+ * [ ✅ ` verifyTurnstile() ` ] ( #%E2%9C%85-verifyturnstile )
29+ * [ 🔁 ` resetTurnstile() ` ] ( #%F0%9F%94%81-resetturnstile )
30+ - [ Contributing] ( #contributing )
31+ - [ Code Of Conduct] ( #code-of-conduct )
32+ - [ Contributors] ( #contributors )
33+ - [ Related Links] ( #related-links )
34+ - [ License] ( #license )
35+
36+ <!-- tocstop -->
37+
2438## Installation
2539
2640``` console
@@ -29,6 +43,7 @@ pnpm add qwik-turnstile
2943
3044## Usage
3145
46+
3247### 🦜 ` useTurnstile() ` hook
3348
3449Add this hook to your Qwik component or route.
@@ -42,7 +57,7 @@ export default component$(() => {
4257 const { Turnstile, tokenSignal } = useTurnstile (
4358 {
4459 siteKey: import .meta .env .VITE_TURNSTILE_SITEKEY ,
45- onResponse $: $ ((response ) => {
60+ onTokenResponse $: $ ((response ) => {
4661 // set the value of an input field
4762 }),
4863 }
Original file line number Diff line number Diff line change 4040 "release" : " changeset publish" ,
4141 "start" : " vite --open --mode ssr" ,
4242 "test" : " echo \" No test specified\" && exit 0" ,
43+ "toc" : " markdown-toc -i README.md --maxdepth 3" ,
4344 "qwik" : " qwik"
4445 },
4546 "peerDependencies" : {
5859 "dotenv" : " ^16.4.5" ,
5960 "eslint" : " 8.57.0" ,
6061 "eslint-plugin-qwik" : " 1.10.0" ,
62+ "markdown-toc" : " ^1.2.0" ,
6163 "np" : " ^8.0.4" ,
6264 "prettier" : " 3.3.3" ,
6365 "pretty-quick" : " ^4.0.0" ,
You can’t perform that action at this time.
0 commit comments