Skip to content

FormCalendar ​

A month grid with a roving tabindex, arrow keys, Home, End and page keys, bounds, disabled days and range selection.

ts
import { FormCalendar } from '@zairakai/vue-components/Form'

Usage ​

vue
<FormCalendar />

Example ​

October 2026
MonTueWedThuFriSatSun

Day: 2026-10-06

vue
<script setup>
  import { ref } from 'vue'

  const day = ref('2026-10-06')
</script>

<template>
  <FormCalendar
    v-model="day"
    locale="en-GB"
  />
  <p>Day: {{ day }}</p>
</template>

Props ​

NameTypeDefaultDescription
idstring
classstring
modelValuestring|objectundefinedThe chosen day (2026-10-05), or { start, end } when range.
rangebooleanfalse
minstring
maxstring
weekStartnumber1The first day of the week: 0 Sunday, 1 Monday.
localestring
isDisabledfunc() => falseA function (iso) => boolean to disable some days.
previousLabelstring'Previous month'
nextLabelstring'Next month'

Events ​

NameDescription
update:modelValue
update:month

See Theming for the class hooks and the data-* state of the components.

Documentation of 1.4.4 , built from 8e9b054 on 1.4.4 by pipeline #2989941079 on 2026-10-26.