Vue3 wrapper for air-datepicker
npm i vue-air-datepicker
import { createApp } from 'vue'
import { createAirDatepicker } from 'vue-air-datepicker'
import App from './App.vue'
const vad = createAirDatepicker()
const app = createApp(App)
app.use(vad)
app.mount('#app')
You can initialize the calendar on a text field, as well as on a block or string element.
<script setup>
import { useDatepicker } from 'vue-air-datepicker'
useDatepicker('#datepicker')
</script>
<template>
<input id="datepicker" type="text">
<!-- OR <div id="datepicker"></div> -->
</template>
MIT License © 2024-PRESENT Zdorovtsev Viktor