DDS/Components/DatePicker

DatePicker

Form

A date input that opens a Calendar in a popover. Supports min/max and a configurable date format.

Props

PropTypeDefaultDescription
modelValueDate | nullnullSelected date (v-model).
placeholderstring"Pick a date"Placeholder text.
formatstring"DD/MM/YYYY"Display format using YYYY MM DD tokens.
disabledbooleanfalseDisables the input.
minDateMinimum selectable date.
maxDateMaximum selectable date.

Examples

Default
vue
<script setup>
const date = ref(null)
</script>
<template>
  <DsDatePicker v-model="date" placeholder="Pick a date" format="DD/MM/YYYY" />
</template>

Skeleton

Use DsDatePickerSkeleton as a loading placeholder while content is being fetched.

Default
vue
<DsDatePickerSkeleton />

Accessibility

  • Button trigger with aria-expanded.
  • Calendar is keyboard navigable.
  • Clear button has aria-label.