Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
vue-turnstile
Advanced tools
Readme
A Cloudflare Turnstile library for Vue 3
Add vue-turnstile
to your Javascript project dependencies using Yarn:
yarn add vue-turnstile
Or NPM:
npm install vue-turnstile --save
<script lang="ts">
import VueTurnstile from 'vue-turnstile';
export default {
components: { VueTurnstile },
data() {
return {
token: '',
};
},
};
</script>
<template>
<div>
<vue-turnstile site-key="1x00000000000000000000AA" v-model="token" />
<div>Token: {{ token }}</div>
</div>
</template>
Prop | Type | Description | Required | Default |
---|---|---|---|---|
site-key | String | Your Turnstile sitekey - Docs | Yes | N/A |
v-model | String | Binding that contains the token returned by the Turnstile widget | Yes | N/A |
reset-interval | Number | Get a fresh token after reset-interval milliseconds - Turnstile tokens only last for 5 minutes | No | 295000 |
size | 'normal' | 'compact' | Widget size | No | 'normal' |
theme | 'light' | 'dark' | 'auto' | Widget theme - auto respects the user's browser preference | No | 'auto' |
action | String | A customer value that can be used to differentiate widgets under the same sitekey in analytics and which is returned upon validation. | No | '' |
appearance | 'always' | 'execute' | 'interaction-only' | Appearance controls when the widget is visible - Docs | No | 'always' |
render-on-mount | Boolean | Automatically render Turnstile widget after component mounts | No | true |
Method | Description |
---|---|
reset() | Resets the widget |
render() | Renders the widget |
Rui Gomes
https://ruigomes.me
The MIT License (MIT). Please see LICENSE file for more information.
FAQs
Vue library for Cloudflare Turnstile CAPTCHA alternative
The npm package vue-turnstile receives a total of 2,397 weekly downloads. As such, vue-turnstile popularity was classified as popular.
We found that vue-turnstile demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.