mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
16 lines
386 B
Vue
16 lines
386 B
Vue
<script setup lang="ts">
|
|
import { format } from 'date-fns'
|
|
|
|
const date = ref(new Date())
|
|
</script>
|
|
|
|
<template>
|
|
<UPopover :popper="{ placement: 'bottom-start' }">
|
|
<UButton icon="i-heroicons-calendar-days-20-solid" :label="format(date, 'd MMM, yyy')" />
|
|
|
|
<template #panel="{ close }">
|
|
<DatePicker v-model="date" @close="close" />
|
|
</template>
|
|
</UPopover>
|
|
</template>
|