Skip to content
navy

DatePicker

Date selection component with month/year picker support.

A lot of work should be done regarding this component, for now it's just standard browser's calendar wrapped in a component

Live Demo

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

Usage

Full Date

vue
<template>
  <orio-date-picker v-model:date="birthDate" label="Birth Date" />
  <orio-date-picker v-model:date="startDate" label="Start Date" />
  <orio-date-picker v-model:date="monthOnly" label="Month & Year Only" month />
</template>

<script setup>
const birthDate = ref("");
const startDate = ref("2024-01-15");
const monthOnly = ref("");
</script>

Month & Year Only

vue
<orio-date-picker
  v-model:date="selectedMonth"
  label="Select Month"
  :month="true"
/>

Props

PropTypeDefaultDescription
datestring-Selected date (v-model:date)
labelstringundefinedLabel text
monthbooleanfalseMonth/year picker mode

Events

EventPayloadDescription
update:datestringEmitted when date changes