DemoFormLayoutVerticalForm.vue
1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<script lang="ts" setup>
const firstName = ref('')
const email = ref('')
const mobile = ref('')
const password = ref<string>()
const checkbox = ref(false)
</script>
<template>
<VForm @submit.prevent="() => {}">
<VRow>
<VCol cols="12">
<VTextField
v-model="firstName"
label="First Name"
placeholder="John"
/>
</VCol>
<VCol cols="12">
<VTextField
v-model="email"
label="Email"
type="email"
placeholder="johndoe@example.com"
/>
</VCol>
<VCol cols="12">
<VTextField
v-model="mobile"
label="Mobile"
placeholder="+1 123 456 7890"
type="number"
/>
</VCol>
<VCol cols="12">
<VTextField
v-model="password"
label="Password"
autocomplete="on"
type="password"
placeholder="············"
/>
</VCol>
<VCol cols="12">
<VCheckbox
v-model="checkbox"
label="Remember me"
/>
</VCol>
<VCol
cols="12"
class="d-flex gap-4"
>
<VBtn type="submit">
Submit
</VBtn>
<VBtn
type="reset"
color="secondary"
variant="tonal"
>
Reset
</VBtn>
</VCol>
</VRow>
</VForm>
</template>