1.1.3 • Published 6 months ago

simple-components-calendar v1.1.3

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

Simple Components | Calendar

Simple calendar view available on 24 languages.

Screenshot

alt text

Install

npm install simple-components-calendar

Usage

Example without anything

import { SimpleCalendar } from 'simple-components-calendar'
<SimpleCalendar />

Example with onChangeDates and defaultView

import { SimpleCalendar } from 'simple-components-calendar'
<SimpleCalendar defaultView="week" onChangeDates={(d) => {
    console.log(d.start)
    console.log(d.end)
}}/>

Props

defaultView?: string

View that you want to show by default. "month" or "week"

onChangeDates?: func

Function that returns first and last dates on the calendar.