Skip to content

Vue DatepickerModern Date Picker

A Vue 3 date picker component supporting multiple calendar systems, with complete TypeScript support and rich customization options

Quick Installation

bash
pnpm add @tiaohsun/vue-datepicker
bash
npm install @tiaohsun/vue-datepicker
bash
yarn add @tiaohsun/vue-datepicker

Simple Usage

vue
<template>
  <div>
    <!-- Basic date picker -->
    <DatePicker v-model="selectedDate" />

    <!-- Date picker with time -->
    <DatePicker v-model="selectedDateTime" :showTime="true" theme="violet" />

    <!-- Republic of China calendar date picker -->
    <DatePicker v-model="rocDate" calendar="roc" locale="zh-TW" />
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import { DatePicker } from "@tiaohsun/vue-datepicker";

const selectedDate = ref(null);
const selectedDateTime = ref(null);
const rocDate = ref(null);
</script>

Key Features

🎯 Multiple Output Formats

Support for ISO strings, JavaScript Date objects, custom formats and other output methods.

🛡️ Powerful Validation Mechanism

Built-in date range validation, format validation, required validation with complete error handling.

🎪 Rich Customization Options

From basic date formats to complex calendar plugins, meeting various usage scenarios.

🚀 Modern Technology Stack

Vue 3 + TypeScript + Tailwind CSS + @internationalized/date + dayjs

Browser Support

  • Chrome >= 88
  • Firefox >= 78
  • Safari >= 14
  • Edge >= 88

Community & Support


Start using Vue Datepicker to add powerful and elegant date selection functionality to your Vue 3 applications!