Skip to content

Commit a10cd0f

Browse files
committed
feature: add netlify form integration
1 parent 75ae70d commit a10cd0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/HelloWorld.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const data = reactive({
1515
<template>
1616
<h1>Vue 3 + Netlify Forms</h1>
1717

18-
<form class="feedback-form">
18+
<form class="feedback-form" name="feedback" netlify>
1919
<div class="input-wrapper">
2020
<label for="name">Name</label>
2121
<input id="name" v-model="data.name" type="text" />
@@ -31,7 +31,7 @@ const data = reactive({
3131
<textarea id="message" v-model="data.message"></textarea>
3232
</div>
3333

34-
<button type="submit" @click="submit">Submit</button>
34+
<button type="submit">Submit</button>
3535
</form>
3636
</template>
3737

0 commit comments

Comments
 (0)