Skip to content

Vue Integration

Procaptcha provides an official Vue component for easy integration of Prosopo Procaptcha into any Vue project. The integration component supports all the Procaptcha render options.

npm install @prosopo/vue-procaptcha-wrapper

<script setup lang="ts">
import {ProcaptchaComponent} from "@prosopo/vue-procaptcha-wrapper";
</script>
<template>
<ProcaptchaComponent :siteKey={"my-site-key"}/>
</template>
// ...
<ProcaptchaComponent
:siteKey={"my-site-key"}
:callbacks={{
onVerified: (token: string): void => {
console.log("verified", token);
},
}}
:htmlAttributes={{
className: "my-app__procaptcha",
style: {
maxWidth: "600px",
},
}}
/>;