V-Calendar is a lightweight, dependency-free plugin for displaying annotated calendars in Vue.js.
Visit http://vcalendar.netlify.com for demos and API reference.
- Display clean and simple attributed calendars
- Built-in support for various attributes, including
- highlighted regions
- indicators
- day content styles (hovered and non-hovered)
- Apply attributes over multiple dates or date ranges (start & end dates)
- Date-picker supporting all native v-calendar props/events with various selection modes
- single date
- multiple dates
- date range
- Extensive API with custom slot support
- Responsive and mobile-friendly
- Handles taps for date selection
- Handles swipes for month navigation
Vue.js version 2.4+ is required.
npm install v-calendar
import Vue from 'vue';
import VCalendar from 'v-calendar';
import 'vcalendar/lib/vcalendar.min.css';
Vue.use(VCalendar);
<template>
<v-calendar
is-double-paned>
</v-calendar>
<v-date-picker
mode='single'
v-model='selectedValue'>
</v-date-picker>
</template>
<script>
export default {
data() {
return {
selectedValue: new Date(),
};
},
};
</script>