Skip to content

FormDatePicker ​

A date field with a calendar panel, formatted with Intl, one date or a range.

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

Usage ​

vue
<FormDatePicker />

Example ​

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

  const range = ref({ start: '2026-10-06', end: '2026-10-09' })
</script>

<template>
  <FormDatePicker
    v-model="range"
    range
    label="Stay"
    locale="en-GB"
  />
</template>

Props ​

NameTypeDefaultDescription
idstring
classstring
modelValuestring|objectundefined2026-10-05, or { start, end } when range.
rangebooleanfalse
namestring
formstring
labelstring
placeholderstring
minstring
maxstring
weekStartnumber1
localestring
requiredbooleanfalse
disabledbooleanfalse
toggleLabelstring'Choose a date'
clearLabelstring'Clear'

Events ​

NameDescription
update:modelValue

Slots ​

NameDescription
icon

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.