Ultimate calendar for your React app.
❗️ = breaking change
propTypes
were removed. If you’re using propTypes
, we recommend migrating to TypeScript or another type-checking solution.calendarType
values. If you're running React-Calendar v4.4.0 or newer, and followed documentation and deprecation warnings, you should be fine.OnArgs
type to make it easier to create custom on…
callbacks (#897). Thanks, @meszaros-lajos-gyorgy!TileArgs
type to make it easier to create custom tileClassName
, tileContent
, tileDisabled
functions.calendarType
prop (#902). Thanks, @abukati!'use client';
to the parent component for this component to work.@types/react
and @types/react-dom
are now optional peerDependencies, which eliminates errors caused by duplicate typings.NavigationLabelFunc
, OnClickFunc
, OnClickWeekNumberFunc
, TileClassNameFunc
, TileContentFunc
and TileDisabledFunc
types are now exported for your convenience.calendarType
prop to match Intl.Locale.calendar
. Thanks to this change, we will be able to support many more calendar types in the near future! Don't worry - old values are still supported, but will be deprecated in the future.clsx
dependency to 2.0.0
to enable ESM support in the near future.Thanks to internal improvements, this is our smallest release ever, down to just 10kB Gzipped! 🥳
CalendarProps
type is now exported for your convenience (#866).[Date, Date]
instead of Date[]
).onDrillDown
and onDrillUp
props.tileClassName
not allowing null
or undefined
return values.React.ComponentProps<typeof Calendar>
incorrectly marking props with default values as required.