Footer content
Select today button
S
M
T
W
T
F
S
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
1
2
3
4
5
6
7
8
9
10
11
vue
<template>
<VDatePicker v-model="date" color="indigo">
<template #footer>
<div class="w-full px-3 pb-3">
<button
class="bg-indigo-600 hover:bg-indigo-700 text-white font-bold w-full px-3 py-1 rounded-md"
@click="setToday"
>
Today
</button>
</div>
</template>
</VDatePicker>
</template>
<script setup>
import { ref } from 'vue';
const date = ref(new Date());
function setToday() {
date.value = new Date();
}
</script>