Vue Integration
Use FormSync with Vue 3 using the useFormSync composable.
Install the Package
Install FormSync using your preferred package manager:
Terminal
You can also use npm, yarn, or bun.
Basic Usage with Vue
FormSync provides a composable API for Vue 3 via the useFormSync function.
This handles form submissions, loading states, and callbacks without manual state management.
Example
Vue Example
Handling Form States
Success & Error Callbacks
Pass onSuccess and onError callbacks to handle the result of the submission.
ts
useFormSync Options
| Prop | Type | Required | Description |
|---|---|---|---|
formId | string | true | Your unique Form ID from the dashboard. |
onSuccess | function | false | Callback triggered on successful submission. |
onError | function | false | Callback triggered when submission fails. |
baseURL | string | false | Optional custom API base URL. |
Spam Protection
FormSync automatically handles spam protection. There is no need to manually add honeypot fields to your form.
How is this guide?
Last updated on April 24, 2026