0.1.4 • Published 1 year ago

@0101-labs/react-calendar v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

React Task Calendar

A library of React Task Calendar. It allows to map your task array with the calendar and displays which dates have tasks.

Installation

Run the following command: npm install @0101-labs/react-calendar

Usages

<Calendar taskArray={taskArray} onSelectDate={(selectedDate) => console.log(selectedDate)} />

Properties

PropTypedefaultRequiredNote
taskArrayArrayEmpty ArrayOptionalThe Array of tasks to display on calendar
onSelectDateFunctionNARequiredCalled when a date is selected
styleStyle ObjectDefault StyleOptionalPass style object if you want to modify the style of root class
headerLabelTextStringMonth Date, YearOptionalPass your own header label when required
headerLabelStyleStyle ObjectNAOptionalControl your header label style
headerContainerStyleStyle ObjectNAOptionalControl your header container style
dropdownStyleStyle ObjectNAOptionalControl the style of month and year dropdown
dotStyleStyleObjectNAOptionalControl your dot style on the calendar

Screenshot

ScreenShot