A Simple Vue Calendar Component with Minimal Css

A Simple Vue Calendar Component with Minimal Css

vue-simple-calendar A simple vue calendar component with minimal css. A base for further development/styling.

vue-simple-calendar

A simple vue calendar component with minimal css. A base for further development/styling.

Dependencies

date-fns, lodash-es

Installation

npm i -S @romanran/vue-simple-calendar

Usage

<script>
import  VSimpleCalendar  from  '@romanran/vue-simple-calendar'
import '@romanran/vue-simple-calendar/dist/vue-simple-calendar.css'
export  default {
    components: { VSimpleCalendar }
},
</script>

Props

  • value: null, Date or Array with 1 or 2 Dates. Calendar opens on the selected date or on the current date
  • type: single, range, month or year

Component uses date-fns

name type default
weekStartsOn Number 1-Monday
dayFormat String "d"
weekdayFormat String "eeeee"
monthFormat String "MMM"
locale Object import from date-fns

Slots

name props description
day day: Object whole day with events and classes
day-inside day: Object Inside of a . vcs-table__day block with date text
weekday day: Object week days bar at the top element
arrow-right and arrow-left - slots for arrow icons

Usage

Selection bar at the top is clickable in single, month or year mode type.

Range mode type

To select range first click on a date, second click selects the range. OR hold and move to the second date and release.

Styling

The component has bare minimum styling. Everything is in BE and scoped with .vcs prefix, modificators are separate: .vcs-selected, .vcs-clickable

Download Details:

Author: romanran

Demo: https://ecstatic-elion-f195d3.netlify.app/

Source Code: https://github.com/romanran/vue-simple-calendar

vue vuejs javascript

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

8 Popular Websites That Use The Vue.JS Framework

In this article, we are going to list out the most popular websites using Vue JS as their frontend framework. Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.

Vue Native is a framework to build cross platform native mobile apps using JavaScript

Vue Native is a framework to build cross platform native mobile apps using JavaScript. It is a wrapper around the APIs of React Native. So, with Vue Native, you can do everything that you can do with React Native. With Vue Native, you get

How to Make a Simple Vue Custom Select Component

In this article, you’ll learn how to build a Vue custom select component that can be easily be styled using your own CSS. In fact, it’s the same component that we use in production on Qvault, and you can see it in action on the playground.

Creating a Custom Tooltip Component in Vue

There are plenty of libraries out there that will have you up and running with a good tooltip solution in minutes. However, if you are like me, you are sick and tired of giant dependency trees that have the distinct possibility of breaking at any time.

Vue ShortKey plugin for Vue.js

Vue-ShortKey - The ultimate shortcut plugin to improve the UX .Vue-ShortKey - plugin for VueJS 2.x accepts shortcuts globaly and in a single listener.