2.0.1 • Published 2 years ago

ultimate-react-calendar v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

version downloads minzipsize license

Ultimate React Calendar

The most complete React calendar for everyone without dependencies.

yearview


Requirements

React 16 or later.

Installation

NPM:

npm install ultimate-react-calendar

YARN:

yarn add ultimate-react-calendar

Usage

You can import all views using:

import { Calendar } from "ultimate-react-calendar"

<>
  <Calendar />
</>

If you import all views the calendar will come with some styles. These can always be overwritten.

Or choose to only import one view:

import { YearView, MonthView, WeekView } from "ultimate-react-calendar/views"

<>
  <YearView />
  <MonthView />
  <WeekView />
</>

Props

Prop nameDescriptionDefault value
classNameCustom classname for the Calendar container."calendar"
onDayClickCallback when click a day from the current month.
calendarTypeType of calendar most commonly used in a given locale. Types available: "iso8601", "hebrew", "gregory" and "islamic"."iso8601"
calendarViewType of view. Options available: "year", "month" and "year"."year"
formatMonthFormat in which the month will be displayed. Formats available: "long", "2-digit", "narrow", "numeric" and "short"."long"
formatDaysOfTheWeekFormat in which the days of the week will be displayed. Options available: "long", "narrow" and "short"."narrow"
customDaysOfTheWeekCustom component that will be rendered for days of the week.
customDayCallback to customize the day that will be rendered.
initialDateThe beginning of a period that shall be displayed.new Date()
localeLocale that should be used by the calendar. Can be any IETF Language tag.Browser language or "en-US" as fallback.
showNonCurrentDatesWhether dates in the previous or next month should be displayed at all.true
messagesList of messages used.Default english messages.

License

Under MIT License.

2.0.1

2 years ago

2.0.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago