Skip to content

Calendar

A calendar component that allows users to select a date.

Examples

Default

January 2026
Event Date, January 2026
vue
<script setup>
import { ref } from 'vue'
import { Calendar } from '@empathyds/vue'

const date = ref(new Date())
</script>

<template>
  <Calendar v-model="date" class="rounded-md border" />
</template>

Installation

bash
pnpm add @internationalized/date
bash
npm install @internationalized/date
bash
yarn add @internationalized/date
bash
bun add @internationalized/date

Props

Calendar

PropTypeDefaultDescription
model-valueDateValue-The focused date
default-valueDateValue-The default focused date
placeholderDateValue-The placeholder date
default-placeholderDateValue-The default placeholder date
paged-navigationbooleanfalseWhether to use paged navigation
prevent-deselectbooleanfalseWhether to prevent deselecting the date
week-starts-on0 | 1 | 2 | 3 | 4 | 5 | 60The day the week starts on
weekday-format'narrow' | 'short' | 'long''narrow'The format of the weekday
calendar-labelstring-The label for the calendar
fixed-weeksbooleanfalseWhether to show fixed weeks
max-valueDateValue-The maximum date value
min-valueDateValue-The minimum date value
localestring-The locale to use
number-of-monthsnumber1The number of months to display
disabledbooleanfalseWhether the calendar is disabled
readonlybooleanfalseWhether the calendar is readonly
initial-focusbooleanfalseWhether to focus the calendar initially

Slots

Calendar

SlotDescription
defaultThe calendar content
headerThe calendar header
gridThe calendar grid