Vue

Vue contact form for any website

Add a Vue contact form with the useFormsReach hook from @formsreach/vue. No custom API route, no serverless handler, no DIY email pipeline. Deliver submissions by email with spam filtering and to WhatsApp in seconds, metered with monthly credits.

Set up FormsReach with Vue

Connect your form in a few steps. No custom backend required.

  1. 1

    Install the package

    Run npm install @formsreach/vue (or pnpm/yarn). Create your API key in FormsReach.

  2. 2

    Use the hook in an SFC

    const { submit, submitting } = useFormsReach('YOUR_API_KEY'). Bind submit with @submit.prevent and disable the button while submitting.

  3. 3

    Ship and test

    Deploy your Vue app. Submit once - check email and/or WhatsApp depending on your delivery settings.

Vue snippet

Copy this into your project, then swap in your FormsReach API key.

          <!-- npm install @formsreach/vue -->
<script setup>
import { useFormsReach } from '@formsreach/vue';

const { submit, submitting } = useFormsReach('YOUR_API_KEY');
</script>

<template>
  <form @submit.prevent="submit">
    <input type="text" name="name" required />
    <input type="email" name="email" required />
    <textarea name="message" required />
    <button type="submit" :disabled="submitting">Submit Form</button>
  </form>
</template>
        

The SPA form problem

In a client-rendered Vue app there is no natural place to POST a contact form. Teams either abuse third-party email widgets, stand up a tiny API, or postpone the form entirely. FormsReach is the form API: the hook submits to our endpoint so you keep building UI, not infrastructure.

Platform notes

Troubleshooting

What you get

Monthly credits for submissions and delivery. Scale when volume grows.

Free

500 credits every month for form submissions, email, webhooks, and workflow rules. Spam filtering included. No credit card required.

Starter, Pro & Agency

Larger monthly credit pools (2,000 / 5,000 / 18,000). WhatsApp via Meta Business API unlocks on Pro and Agency. See pricing.

FAQ

Common questions about FormsReach with Vue.

Do I need a Vue server or custom API route?+

No. useFormsReach talks to the FormsReach form API. You do not need a custom backend for basic contact forms.

What does useFormsReach return?+

submit and submitting - use submit with @submit.prevent and submitting to disable the button or show loading UI.

Free vs Pro delivery?+

Email and WhatsApp via Meta WhatsApp Business API, with spam filtering. Usage is metered in monthly credits.

Does this work with Vite / Vue SPA hosts?+

Yes - any Vue setup that can install npm packages. For Nuxt app structure, see the Nuxt integration page.

More framework guides that use the same FormsReach form API.

Ready to receive form leads?

Create a free API key. Upgrade when you need more monthly credits.