VuePress is a minimalistic Vue-powered static site generator.
Start collecting data in a matter of clicks.
Let Formspark take care of the servers, databases, and analytics.
Set up any form in seconds.
Out of the box Vue support
Compatible with Jamstack
<!-- .vuepress/components/ContactForm.vue --> <!-- Components in this directory are globally available, so a markdown page can use <ContactForm /> directly. --> <template> <form @submit.prevent="onSubmit"> <textarea v-model="message" /> <button type="submit" :disabled="submitting">Send</button> </form> </template> <script> const FORMSPARK_ACTION_URL = "https://submit-form.com/your-form-id"; export default { name: "ContactForm", data() { return { message: "", submitting: false, }; }, methods: { async onSubmit() { this.submitting = true; try { await fetch(FORMSPARK_ACTION_URL, { method: "POST", headers: { "Content-Type": "application/json", Accept: "application/json", }, body: JSON.stringify({ message: this.message }), }); this.message = ""; } finally { this.submitting = false; } }, }, }; </script>