navy
DateRangePicker
Start and end date selection with "Present" option.
Live Demo
Employment: 2020-01-01 → 2024-12-31
Education: 2018-09-01 → Present
Education: 2018-09-01 → Present
Usage
vue
<template>
<orio-date-range-picker
v-model:dates="employmentDates"
label="Employment Period"
/>
<orio-date-range-picker
v-model:dates="educationDates"
label="Education (with Present)"
/>
</template>
<script setup>
const employmentDates = ref({
startDate: "2020-01-01",
endDate: "2024-12-31",
});
const educationDates = ref({
startDate: "2018-09-01",
endDate: null,
});
</script>With Month Picker
vue
<orio-date-range-picker v-model:dates="monthRange" :month="true" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
dates | ResumeDate | - | Date range object (v-model:dates) |
month | boolean | false | Month/year picker mode |
ResumeDate Type
typescript
interface ResumeDate {
startDate: string;
endDate: string | null;
}Events
| Event | Payload | Description |
|---|---|---|
update:dates | ResumeDate | Emitted when dates change |
Features
- Validates that start date is before end date
- "Present" checkbox sets
endDatetonull - Shows error message if dates are invalid