v-model
# npm
npm install @vuepic/vue-datepicker
# yarn
yarn add @vuepic/vue-datepicker
# pnpm
pnpm add @vuepic/vue-datepicker
# bun
bun add @vuepic/vue-datepicker
Global
import { createApp } from 'vue';
import App from './App.vue';
import VueDatePicker from '@vuepic/vue-datepicker';
import '@vuepic/vue-datepicker/dist/main.css';
const app = createApp(App);
app.component('VueDatePicker', VueDatePicker);
Local
<template>
<VueDatePicker v-model="date" />
</template>
<script setup>
import { ref } from 'vue';
import VueDatePicker from '@vuepic/vue-datepicker';
import '@vuepic/vue-datepicker/dist/main.css';
const date = ref(null);
</script>
As you may know, maintaining an open-source project is a very time-consuming job. Your support is very appreciated ❤️
Please ⭐️ this repository if you like the component!
You can also make a financial contribution via sponsoring this project or one time donation. Become a sponsor
Special thanks to our sponsors 🙏
Thanks to all people who contributed to the project 🙏
This project follows SemVer specification
Copyright © 2021-present Vuepic