react-turnstile
Advanced tools
Changelog
[1.1.4] - 2024-09-24
onSuccess
callback with the additional preClearanceObtained
argumentflexible
option for size
propturnstile-types
to v1.2.3Changelog
[1.1.3] - 2024-02-19
Changelog
[1.1.2] - 2023-09-18
onAfterInteractive
, onBeforeInteractive
, onUnsupported
callbacksonVerify
is no longer requiredretry
logic (issue fixed upstream in Turnstile itself)Changelog
[1.1.1] - 2023-06-25
useTurnstile
hookfixedSize
option to reduce layout shiftonExpire
BoundTurnstileObject
argument to callbacksglobal
-> globalNamespace
(name conflict) (#10)retry
logic ourselves (#14)onError
error argument passthroughChangelog
[1.1.0] - 2023-03-09
refreshExpired
optionlanguage
optionappearance
optionexecution
optiononTimeout
callback not properly registeringref
not passing properly - pass userRef
insteadglobalThis
errors on older browsersautoResetOnExpire
- use refreshExpired
insteadChangelog
[1.0.6] - 2022-11-25
onTimeout
callbackautoResetOnExpire
for automatically resetting the Turnstile widget once the token expiresretry
& retryInterval
ref
argument for using your own ref (#7)Changelog
[1.0.5] - 2022-10-22
size
supportChangelog
[1.0.4] - 2022-10-11
onLoad
callback now includes the turnstile widget id (#5)Changelog
[1.0.3] - 2022-10-05
useRef
instead of createRef
(#4)Changelog
[1.0.2] - 2022-10-05
responseField
and responseFieldName
for controlling the <input />
element generated by Turnstile.style
prop which is directly passed to the internal <div />
turnstile.remove()
to remove widgets after being unloaded