Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 838 Bytes

README.md

File metadata and controls

46 lines (31 loc) · 838 Bytes

vue-air-datepicker

Vue3 wrapper for air-datepicker

Install

npm i vue-air-datepicker

Usage

Install the plugin

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')

Init calendar

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>

License

MIT License © 2024-PRESENT Zdorovtsev Viktor