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.
npm install vue-date-pickVerified import paths — ran on the pinned version, not inferred.
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`.
For Vue 3 projects, consider using more actively maintained date pickers like `@vuepic/vue-datepicker` or `vue3-datepicker` which are built specifically for Vue 3.
Add `import 'vue-date-pick/dist/vueDatePick.css';` to your main JavaScript file (e.g., `main.js` or `app.js`) or the component where `vue-date-pick` is used.
For long-term projects or those requiring active support and new features, it's advisable to evaluate more actively maintained alternatives. Ensure thorough testing for existing deployments.
Ensure `DatePick` is imported and added to the `components` option of your Vue component (e.g., `components: { DatePick }`) or globally registered using `Vue.component('date-pick', DatePick);`.Add `import 'vue-date-pick/dist/vueDatePick.css';` to your application's entry file (e.g., `main.js`) or a top-level component.
Review the documentation for `display-format` and `custom date parser` options. Ensure the `display-format` prop matches the desired output format, adhering to moment.js-like formatting strings.