Azurewarth0920 / vue3-range-calendar

Calendar UI component library of Vue.js 3 for picking date, week, month, year ranges, with zero dependencies and high customizability.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue3-range-calendar

Overview

Vue3-range-calendar is a calendar UI component library for picking date, week, month, year ranges, with zero dependencies and high customizability for Vue3.

Installation

npm

yarn add vue3-range-calendar
# or
npm install vue3-range-calendar

Install component to the Vue instance.

import { createApp } from 'vue'
import rangeCalendar from 'vue3-range-calendar'
import 'vue3-range-calendar/dist/styles/index.css'

const app = Vue.createApp({...})
app.use(rangeCalendar)

Then you can use the range calendar on your component.

eg.

<script setup>
const start = ref<Date | null>(null)
const end = ref<Date | null>(null)
</script>


<template>
  <p>start: <input v-model="start" type="text" /></p>
  <p>end: <input v-model="end" type="text" /></p>
  <range-calendar v-model:start="start" v-model:end="end" />
</template>

Documentation

To check out examples and options, visit here.

About

Calendar UI component library of Vue.js 3 for picking date, week, month, year ranges, with zero dependencies and high customizability.

License:MIT License


Languages

Language:TypeScript 84.5%Language:SCSS 10.2%Language:JavaScript 2.9%Language:Vue 1.6%Language:HTML 0.7%