Skip to content

DatePicker

Single-date picker built on top of Calendar. Renders as a button trigger that opens a popover with the calendar.

Live Demo

Selected dates:
Birth: (not selected)
Start: 2024-01-15

Usage

vue
<template>
  <orio-date-picker v-model="birthDate" label="Birth Date" />
</template>

<script setup>
const birthDate = ref(null);
</script>

Props

Inherits all ControlProps (label, size, layout, error, ...).

PropTypeDefaultDescription
placeholderstringi18n stringTrigger text when nothing selected
minstring | nullnullISO YYYY-MM-DD lower bound
maxstring | nullnullISO YYYY-MM-DD upper bound
markersCalendarMarker[][]Highlight ranges — passed through to Calendar
getMarker(iso) => CalendarMarker | nullPer-day marker callback
isDisabled(iso) => booleanExtra disabled predicate, combined with min / max

See Calendar for the CalendarMarker type and resolution rules.

v-model

string | null — ISO YYYY-MM-DD date string.

Events

EventPayloadDescription
update:modelValuestring | nullEmitted when date changes