🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@vcl/calendar

Package Overview
Dependencies
Maintainers
4
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vcl/calendar

Calendar to display and select dates

next
npmnpm
Version
1.0.0-alpha.2
Version published
Weekly downloads
1
Maintainers
4
Weekly downloads
 
Created
Source

VCL calendar

Calendar to display and select date and time.

Features

The calendar can be used to show typical representations of time unit like:

  • Day (hours in a day).
  • Month (days in a month).
  • Year (months in year).
  • Years (range of years).

Styling for the following kind of days or special days exist:

  • Day from adjacent months to the currently shown month.
  • Today.
  • Disabled (for example for data ranges outside a valid range)
  • Unavailable (for example for a schedule).
  • Available (for example for a schedule).

Also styles to represent the selection of a time unit and ranges of time units exist.

Usage

Month view:

month example

Year view:

year example

Years view:

years example

Classes

  • calendar
  • cal-header-label
  • weekday-label
  • cal-item

Modifiers

For calendar

  • cal-input make the calendar appear as input for date selections.

For cal-item

  • today
  • other-month
  • disabled
  • selected: Mark a time unit as selected
  • selected-alt: Mark a time unit as selected with alternative style
  • selected-beg: Mark the beginning of a time unit range
  • selected-end: Mark the end of a time unit range
  • available
  • unavailable

Variables

  • --calendar-bg-color
  • --calendar-item-color
  • --calendar-item-today-color
  • --calendar-item-bg-color
  • --calendar-item-hover-color
  • --calendar-item-hover-bg-color
  • --calendar-otherm-day-color
  • --calendar-otherm-day-bg-color
  • --calendar-selected-item-color
  • --calendar-selected-item-bg-color
  • --calendar-disabled-item-color
  • --calendar-disabled-item-bg-color
  • --calendar-available-item-bg-color
  • --calendar-unavailable-item-bg-color

Demo

example.html on GH-pages.

Keywords

css

FAQs

Package last updated on 17 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts