mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
12 lines
346 B
Vue
12 lines
346 B
Vue
<script setup lang="ts">
|
|
import { CalendarDate } from '@internationalized/date'
|
|
|
|
const modelValue = shallowRef(new CalendarDate(2023, 9, 10))
|
|
const minDate = new CalendarDate(2023, 9, 1)
|
|
const maxDate = new CalendarDate(2023, 9, 30)
|
|
</script>
|
|
|
|
<template>
|
|
<UCalendar v-model="modelValue" :min-value="minDate" :max-value="maxDate" />
|
|
</template>
|