DDS/Components/DateRangePicker

DateRangePicker

Form

Date range selector with two side-by-side calendars.

Props

PropTypeDefaultDescription
modelValue{ start: Date | null, end: Date | null }{ start: null, end: null }Selected range (v-model).
placeholderstring"Pick a date range"Placeholder text when nothing is selected.
disabledbooleanfalseDisable the component.

Examples

Select a date range
vue
<script setup>
const range = ref({ start: null, end: null })
</script>
<template>
  <DsDateRangePicker v-model="range" placeholder="Pick a date range" />
</template>

Skeleton

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

Default
vue
<DsDateRangePickerSkeleton />

Accessibility

  • Clicking outside the calendar closes it.
  • Keyboard navigation supported.