0.0.6 • Published 3 years ago

smart-react-calendar v0.0.6

Weekly downloads
13
License
ISC
Repository
-
Last release
3 years ago

Smart React Calendar

Simple calendar for your ReactJS app

alt text

Installation

Use the package manager npm to install smart-react-calendar.

npm install smart-react-calendar

Usage

import SmartReactCalendar from 'smart-react-calendar'

const Calendar = () => {
  return(
    <SmartReactCalendar />
  )
}

export default Calendar

Props

PropertyTypeDefaultDescription
selectedMoment or new Date()moment()Selected date
startDateMoment or new Date()moment()Date the calendar starts
endDateMoment or new Date()moment().add(2, 'months')Date the calendar ends
disabledDaysArray[]Disabled days
formatBooleanfalseDate format returned in the onChange function
localeStringesCalendar translation
timezoneStringEurope/MadridTimezone
themeObject{ primaryColor: "#2e88f1", secondaryColor: "#111d4a", disabledDaysColor: "#c2c2c2", disabledFont: false }Calendar style
onChangeFunction() => {}Callback invoked when the user change date

License

MIT

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago