Vue Date Pick

1.5.1 · maintenance · verified Sun Apr 19

Vue Date Pick is a lightweight and mobile-friendly date and time picker component built for Vue.js applications. Currently stable at version 1.5.1, it was last published approximately four years ago, suggesting a maintenance-only status rather than active development. A key differentiator is its explicit lack of external dependencies on CSS frameworks or date manipulation libraries, resulting in a minimal footprint (less than 5KB). It emphasizes performance, an elegant and usable UI across various screen sizes, and straightforward configuration. While its primary target appears to be Vue 2 given its last update date and common usage patterns, it can be integrated using standard Vue component registration methods. The project offers a comprehensive demo and documentation pages for usage and customization.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to install, import, and locally register `vue-date-pick` within a basic Vue 2 application, displaying a date and time picker that updates a data property via `v-model`.

import Vue from 'vue';
import DatePick from 'vue-date-pick';
import 'vue-date-pick/dist/vueDatePick.css';

new Vue({
  el: '#app',
  components: {
    DatePick
  },
  data: {
    selectedDate: new Date().toISOString().substring(0, 10)
  },
  template: `
    <div id="app">
      <h1>Vue Date Pick Demo</h1>
      <p>Selected Date: {{ selectedDate }}</p>
      <date-pick
        v-model="selectedDate"
        :has-time="true"
        :start-date="new Date()"
        :display-format="'YYYY-MM-DD HH:mm'"
      ></date-pick>
    </div>
  `
});

view raw JSON →