react-calendar vs react-datepicker vs react-datetime-picker vs react-multi-date-picker
Selecting the Right Date and Time Picker for React Applications
react-calendarreact-datepickerreact-datetime-pickerreact-multi-date-pickerSimilar Packages:

Selecting the Right Date and Time Picker for React Applications

react-calendar, react-datepicker, react-datetime-picker, and react-multi-date-picker are all React components designed to handle date and time selection, but they serve different architectural needs. react-calendar is a lightweight, headless-friendly calendar view often used as a building block for custom date pickers. react-datepicker is the industry standard for flexible, pop-up based date selection with extensive customization via popper.js. react-datetime-picker combines a calendar and a time input into a single, unified component for scenarios requiring precise timestamp selection. react-multi-date-picker specializes in complex selection patterns, allowing users to pick multiple dates, ranges, or specific periods simultaneously within a highly customizable interface.

Npm Package Weekly Downloads Trend

3 Years

Github Stars Ranking

Stat Detail

Package
Downloads
Stars
Size
Issues
Publish
License
react-calendar03,788271 kB214 months agoMIT
react-datepicker08,3834.5 MB948 months agoMIT
react-datetime-picker0582162 kB021 days agoMIT
react-multi-date-picker0988367 kB1402 years agoMIT

React Date Pickers: Architecture, Flexibility, and Use Cases Compared

Choosing the right date picker in React isn't just about looks; it's about how the component handles state, accessibility, and integration with your form library. While react-calendar, react-datepicker, react-datetime-picker, and react-multi-date-picker all solve the problem of date selection, they approach the UI and data flow differently. Let's break down how they handle real-world engineering challenges.

🏗️ Core Architecture: View vs. Widget vs. Suite

react-calendar provides only the calendar grid. It does not include an input field or a pop-up container. You must build the toggle logic yourself.

  • Best for: Custom designs where the calendar floats inside a modal or a specific layout.
  • You control when it opens and closes.
// react-calendar: Just the view
import Calendar from 'react-calendar';
import { useState } from 'react';

function CustomDatePicker() {
  const [date, setDate] = useState(new Date());
  const [isOpen, setIsOpen] = useState(false);

  return (
    <div>
      <button onClick={() => setIsOpen(!isOpen)}>Select Date</button>
      {isOpen && (
        <Calendar
          onChange={setDate}
          value={date}
          onClickDay={() => setIsOpen(false)}
        />
      )}
    </div>
  );
}

react-datepicker is a complete widget. It manages the input, the pop-up (using Popper.js), and the calendar view automatically.

  • Best for: Standard form inputs where you want a dropdown behavior.
  • Handles clicking outside to close automatically.
// react-datepicker: Full widget
import DatePicker from 'react-datepicker';
import "react-datepicker/dist/react-datepicker.css";

function StandardForm() {
  const [date, setDate] = useState(new Date());

  return (
    <DatePicker
      selected={date}
      onChange={(d) => setDate(d)}
      placeholderText="Click to select a date"
    />
  );
}

react-datetime-picker merges a date input and a time input into one unified component with a shared calendar/clock popup.

  • Best for: Timestamps where date and time are equally important.
  • Renders two input boxes (date and time) side-by-side or stacked.
// react-datetime-picker: Combined Date + Time
import DateTimePicker from 'react-datetime-picker';

function EventScheduler() {
  const [value, setValue] = useState(new Date());

  return (
    <DateTimePicker
      onChange={setValue}
      value={value}
      clearIcon={null} // Optional: hide the clear button
    />
  );
}

react-multi-date-picker is a suite designed for complex selection logic. It supports multiple modes (single, multiple, range) via props.

  • Best for: Scenarios requiring more than one date selection.
  • Uses a unique DateObject system internally but accepts standard dates.
// react-multi-date-picker: Complex selection
import DatePicker from "react-multi-date-picker";

function TravelPlanner() {
  const [dates, setDates] = useState([]);

  return (
    <DatePicker
      multiple
      onChange={setDates}
      value={dates}
      placeholder="Select multiple travel dates"
    />
  );
}

🗓️ Selection Modes: Single vs. Range vs. Multiple

How the component handles user interaction defines its utility. Some force a single choice, while others allow complex patterns.

react-calendar supports single dates and ranges natively via the selectRange prop.

  • You get a start and end date array.
  • No native support for picking 5 random dates.
// react-calendar: Range selection
<Calendar
  onChange={setRange}
  value={range}
  selectRange={true} // Enables range mode
/>

react-datepicker handles ranges using startDate and endDate props, requiring you to manage two state variables.

  • Can feel verbose for simple range use cases.
  • Supports selectsRange prop to simplify logic.
// react-datepicker: Range selection
<DatePicker
  selectsRange
  startDate={startDate}
  endDate={endDate}
  onChange={(update) => {
    const [start, end] = update;
    setStartDate(start);
    setEndDate(end);
  }}
  isClearable={true}
/>

react-datetime-picker focuses strictly on single timestamp selection.

  • Does not support ranges or multiple dates out of the box.
  • Trying to force range logic here requires building two separate instances.
// react-datetime-picker: Single timestamp only
<DateTimePicker
  onChange={setTimestamp}
  value={timestamp}
/>

react-multi-date-picker excels here with a multiple prop that allows picking unlimited discrete dates.

  • Also supports range and multipleRange modes.
  • Returns an array of date objects immediately.
// react-multi-date-picker: Multiple discrete dates
<DatePicker
  multiple
  onChange={setDates}
  value={dates}
  minDate={new Date()}
/>

🎨 Styling and Customization: CSS vs. Inline vs. Components

Visual integration is often the biggest hurdle. Some libraries rely on heavy CSS overrides, while others offer component slots.

react-calendar uses BEM-style CSS classes (e.g., react-calendar__tile--active).

  • Easy to override with global CSS or CSS Modules.
  • No JavaScript API for rendering custom day cells (you must use CSS or wrap the whole component).
/* react-calendar: CSS Override */
.react-calendar__tile--active {
  background: #006edb;
  color: white;
}

react-datepicker relies on SCSS variables and specific class names.

  • You can inject custom components using renderDayContents.
  • Good for adding badges or icons inside specific days.
// react-datepicker: Custom day content
<DatePicker
  renderDayContents={(day, date) => {
    if (day === 15) return <span className="badge">15</span>;
    return day;
  }}
/>

react-datetime-picker shares the same class structure as react-calendar since it uses it internally.

  • Customization often requires targeting nested classes like .react-datetime-picker__inputGroup__input.
  • Can be fragile if internal structure changes.
/* react-datetime-picker: Targeting time input */
.react-datetime-picker__inputGroup__input {
  border: 1px solid #ccc;
}

react-multi-date-picker offers a render prop for complete control over the input field.

  • You can replace the default input with any React component.
  • Supports custom themes via props without writing CSS.
// react-multi-date-picker: Custom input render
<DatePicker
  render={<CustomInputComponent />}
  theme="dark"
/>

⌨️ Accessibility and Keyboard Navigation

For enterprise apps, keyboard support is non-negotiable. All four libraries strive for compliance, but implementation varies.

react-calendar has strong keyboard navigation built-in (arrows to move, enter to select).

  • Since it lacks an input field by default, you must ensure your wrapper button is accessible.
  • Focus management is manual.
// react-calendar: Manual focus management
<button ref={btnRef} aria-label="Open calendar">Pick Date</button>
<Calendar autoFocus /> // Focuses the calendar when mounted

react-datepicker is highly optimized for keyboard users.

  • Opens on focus, closes on escape.
  • Navigates months and years via keyboard seamlessly.
// react-datepicker: Native keyboard support
<DatePicker
  onKeyDown={(e) => {
    if (e.key === "Escape") console.log("Closed via ESC");
  }}
/>

react-datetime-picker inherits calendar navigation but adds complexity with time inputs.

  • Users must tab between date and time fields.
  • Can be slightly clunky for screen readers if not labeled correctly.
// react-datetime-picker: ARIA labels
<DateTimePicker
  aria-label="Select event date and time"
  clearAriaLabel="Clear date"
/>

react-multi-date-picker supports keyboard navigation but can get complex in "multiple" mode.

  • Users need to understand how to deselect items via keyboard.
  • Documentation emphasizes checking ARIA props for complex modes.
// react-multi-date-picker: Accessible multiple selection
<DatePicker
  multiple
  aria-label="Select multiple dates"
  editable={false} // Force selection via calendar for better a11y
/>

🌍 Similarities: Shared Ground

Despite their differences, these libraries share common goals and React patterns.

1. 📅 Based on Native Date Objects

  • All primarily accept and return JavaScript Date objects (or arrays of them).
  • No forced dependency on Moment.js or Day.js in the core API (though helpers exist).
// Shared: All accept standard Date objects
const today = new Date();
// Works in all four libraries as `value={today}`

2. 🔄 Controlled Components

  • All follow React's controlled component pattern (value + onChange).
  • Uncontrolled usage is possible but discouraged for complex apps.
// Shared: Controlled pattern
<Picker value={state} onChange={setState} />

3. 🚫 Null Handling

  • All support clearing the selection (returning null or empty array).
  • Essential for optional form fields.
// Shared: Clearing value
onChange(null); // Resets to empty state in all libraries

4. 📱 Responsive Design

  • All attempt to handle mobile views, though strategies differ.
  • Some rely on native mobile pickers, others force the JS calendar.
// Shared: Mobile consideration
// Most devs wrap these in a media query to show native <input type="date" /> on small screens

📊 Summary: Key Differences

Featurereact-calendarreact-datepickerreact-datetime-pickerreact-multi-date-picker
TypeView OnlyFull WidgetCombined WidgetSuite / Widget
Time Support❌ No✅ Yes (separate)✅ Yes (integrated)✅ Yes (plugin/config)
Multiple Dates❌ No❌ No (Range only)❌ No✅ Yes (Native)
Input Field🚫 You build it✅ Included✅ Included✅ Included
Best ForCustom UIsStandard FormsTimestampsComplex Selection

💡 The Big Picture

react-calendar is the LEGO brick 🧱. Use it when you want to build your own unique date picker interface and don't want to fight against a library's default styles or behavior. It gives you maximum control but requires the most code.

react-datepicker is the reliable sedan 🚗. It's the safe, standard choice for 90% of forms. It works well, looks decent, and handles edge cases like leap years and timezones without much fuss. Ideal for admin panels and CRUD apps.

react-datetime-picker is the specialized tool 🔧. If your domain involves scheduling, appointments, or logs where "Date" alone is useless without "Time," this is the most efficient choice. It saves you from syncing two separate components.

react-multi-date-picker is the power user's choice 🎹. When your business logic demands selecting multiple dates (e.g., "Select all available days in July"), this library prevents you from writing complex state management logic yourself. It handles the heavy lifting of array manipulation and range detection.

Final Thought: Don't over-engineer. If you just need a birthdate field, react-datepicker is enough. If you are building a flight booking engine, react-multi-date-picker is worth the dependency. If you need a custom modal design, start with react-calendar.

How to Choose: react-calendar vs react-datepicker vs react-datetime-picker vs react-multi-date-picker

  • react-calendar:

    Choose react-calendar if you need a bare-bones calendar view to build a completely custom date picker experience from scratch. It is ideal when you want full control over the input field, pop-up logic, and styling, or if you are implementing a date range selector that requires two synchronized calendar instances. Avoid it if you need a ready-to-use dropdown picker with time selection out of the box.

  • react-datepicker:

    Choose react-datepicker if you need a robust, battle-tested solution for standard single-date, range, or time selection with minimal setup. It is the best fit for forms requiring reliable pop-up behavior, keyboard navigation, and extensive localization support without reinventing the wheel. Select this when you need a balance between feature richness and ease of integration in enterprise applications.

  • react-datetime-picker:

    Choose react-datetime-picker when your application specifically requires selecting both a date and a time together in a single, cohesive UI component. It is perfect for scheduling apps, booking systems, or logs where a timestamp (YYYY-MM-DD HH:mm) is the primary data unit. Do not use this if you only need date selection, as it introduces unnecessary complexity for time-agnostic fields.

  • react-multi-date-picker:

    Choose react-multi-date-picker if your users need to select multiple non-contiguous dates, complex ranges, or specific periods (like 'every Monday') in one interaction. It is the superior choice for travel booking, shift scheduling, or analytics tools where single-date selection is insufficient. Opt for this when you need advanced selection modes that standard pickers do not support natively.

README for react-calendar

npm downloads CI

react-calendar

Ultimate calendar for your React app.

  • Pick days, months, years, or even decades
  • Supports range selection
  • Supports virtually any language
  • No moment.js needed

tl;dr

  • Install by executing npm install react-calendar or yarn add react-calendar.
  • Import by adding import Calendar from 'react-calendar'.
  • Use by adding <Calendar />. Use onChange prop for getting new values.

Demo

A minimal demo page can be found in sample directory.

Online demo is also available!

Before you continue

react-calendar is under constant development. This documentation is written for react-calendar 4.x branch. If you want to see documentation for other versions of react-calendar, use dropdown on top of GitHub page to switch to an appropriate tag. Here are quick links to the newest docs from each branch:

Getting started

Compatibility

Your project needs to use React 16.8 or later.

react-calendar uses modern web technologies. That's why it's so fast, lightweight and easy to style. This, however, comes at a cost of supporting only modern browsers.

My locale isn't supported! What can I do?

If your locale isn't supported, you can use Intl.js or another Intl polyfill along with react-calendar.

Installation

Add react-calendar to your project by executing npm install react-calendar or yarn add react-calendar.

Usage

Here's an example of basic usage:

import { useState } from 'react';
import Calendar from 'react-calendar';

type ValuePiece = Date | null;

type Value = ValuePiece | [ValuePiece, ValuePiece];

function MyApp() {
  const [value, onChange] = useState<Value>(new Date());

  return (
    <div>
      <Calendar onChange={onChange} value={value} />
    </div>
  );
}

Check the sample directory in this repository for a full working example. For more examples and more advanced use cases, check Recipes in react-calendar Wiki.

Custom styling

If you want to use default react-calendar styling to build upon it, you can import react-calendar's styles by using:

import 'react-calendar/dist/Calendar.css';

User guide

Calendar

Displays a complete, interactive calendar.

Props

Prop nameDescriptionDefault valueExample values
activeStartDateThe beginning of a period that shall be displayed. If you wish to use react-calendar in an uncontrolled way, use defaultActiveStartDate instead.(today)new Date(2017, 0, 1)
allowPartialRangeWhether to call onChange with only partial result given selectRange prop.falsetrue
calendarTypeType of calendar that should be used. Can be 'gregory, 'hebrew', 'islamic', 'iso8601'. Setting to "gregory" or "hebrew" will change the first day of the week to Sunday. Setting to "islamic" will change the first day of the week to Saturday. Setting to "islamic" or "hebrew" will make weekends appear on Friday to Saturday.Type of calendar most commonly used in a given locale'iso8601'
classNameClass name(s) that will be added along with "react-calendar" to the main react-calendar <div> element.n/a
  • String: "class1 class2"
  • Array of strings: ["class1", "class2 class3"]
data-testidThe test ID used for testing purposes.n/a'calendar'
defaultActiveStartDateThe beginning of a period that shall be displayed by default. If you wish to use react-calendar in a controlled way, use activeStartDate instead.(today)new Date(2017, 0, 1)
defaultValueCalendar value that shall be selected initially. Can be either one value or an array of two values. If you wish to use react-calendar in a controlled way, use value instead.n/a
  • Date: new Date()
  • An array of dates: [new Date(2017, 0, 1), new Date(2017, 7, 1)]
defaultViewDetermines which calendar view shall be opened initially. Does not disable navigation. Can be "month", "year", "decade" or "century". If you wish to use react-calendar in a controlled way, use view instead.The most detailed view allowed"year"
formatDayFunction called to override default formatting of day tile labels. Can be used to use your own formatting function.(default formatter)(locale, date) => formatDate(date, 'd')
formatLongDateFunction called to override default formatting of day tile abbr labels. Can be used to use your own formatting function.(default formatter)(locale, date) => formatDate(date, 'dd MMM YYYY')
formatMonthFunction called to override default formatting of month names. Can be used to use your own formatting function.(default formatter)(locale, date) => formatDate(date, 'MMM')
formatMonthYearFunction called to override default formatting of months and years. Can be used to use your own formatting function.(default formatter)(locale, date) => formatDate(date, 'MMMM YYYY')
formatShortWeekdayFunction called to override default formatting of weekday names (shortened). Can be used to use your own formatting function.(default formatter)(locale, date) => formatDate(date, 'dd')
formatWeekdayFunction called to override default formatting of weekday names. Can be used to use your own formatting function.(default formatter)(locale, date) => formatDate(date, 'dd')
formatYearFunction called to override default formatting of year in the top navigation section. Can be used to use your own formatting function.(default formatter)(locale, date) => formatDate(date, 'YYYY')
goToRangeStartOnSelectWhether to go to the beginning of the range when selecting the end of the range.truefalse
inputRefA prop that behaves like ref, but it's passed to main <div> rendered by <Calendar> component.n/a
  • Function:
    (ref) => { this.myCalendar = ref; }
  • Ref created using createRef:
    this.ref = createRef();
    …
    inputRef={this.ref}
  • Ref created using useRef:
    const ref = useRef();
    …
    inputRef={ref}
localeLocale that should be used by the calendar. Can be any IETF language tag. Note: When using SSR, setting this prop may help resolving hydration errors caused by locale mismatch between server and client.Server locale/User's browser settings"hu-HU"
maxDateMaximum date that the user can select. Periods partially overlapped by maxDate will also be selectable, although react-calendar will ensure that no later date is selected.n/aDate: new Date()
maxDetailThe most detailed view that the user shall see. View defined here also becomes the one on which clicking an item will select a date and pass it to onChange. Can be "month", "year", "decade" or "century"."month""year"
minDateMinimum date that the user can select. Periods partially overlapped by minDate will also be selectable, although react-calendar will ensure that no earlier date is selected.n/aDate: new Date()
minDetailThe least detailed view that the user shall see. Can be "month", "year", "decade" or "century"."century""decade"
navigationAriaLabelaria-label attribute of a label rendered on calendar navigation bar.n/a"Go up"
navigationAriaLivearia-live attribute of a label rendered on calendar navigation bar.undefined"polite"
navigationLabelContent of a label rendered on calendar navigation bar.(default label)({ date, label, locale, view }) => alert(`Current view: ${view}, date: ${date.toLocaleDateString(locale)}`)
next2AriaLabelaria-label attribute of the "next on higher level" button on the navigation pane.n/a"Jump forwards"
next2LabelContent of the "next on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon."Âť"
  • String: "Âť"
  • React element: <DoubleNextIcon />
nextAriaLabelaria-label attribute of the "next" button on the navigation pane.n/a"Next"
nextLabelContent of the "next" button on the navigation pane. Setting the value explicitly to null will hide the icon."›"
  • String: "›"
  • React element: <NextIcon />
onActiveStartDateChangeFunction called when the user navigates from one view to another using previous/next button. Note that this function will not be called when e.g. drilling up from January 2021 to 2021 or drilling down the other way around.
action signifies the reason for active start date change and can be one of the following values: "prev", "prev2", "next", "next2", "drillUp", "drillDown", "onChange".
n/a({ action, activeStartDate, value, view }) => alert('Changed view to: ', activeStartDate, view)
onChangeFunction called when the user clicks an item (day on month view, month on year view and so on) on the most detailed view available.n/a(value, event) => alert('New date is: ', value)
onClickDayFunction called when the user clicks a day.n/a(value, event) => alert('Clicked day: ', value)
onClickDecadeFunction called when the user clicks a decade.n/a(value, event) => alert('Clicked decade: ', value)
onClickMonthFunction called when the user clicks a month.n/a(value, event) => alert('Clicked month: ', value)
onClickWeekNumberFunction called when the user clicks a week number.n/a(weekNumber, date, event) => alert('Clicked week: ', weekNumber, 'that starts on: ', date)
onClickYearFunction called when the user clicks a year.n/a(value, event) => alert('Clicked year: ', value)
onDrillDownFunction called when the user drills down by clicking a tile.n/a({ activeStartDate, view }) => alert('Drilled down to: ', activeStartDate, view)
onDrillUpFunction called when the user drills up by clicking drill up button.n/a({ activeStartDate, view }) => alert('Drilled up to: ', activeStartDate, view)
onViewChangeFunction called when the user navigates from one view to another using drill up button or by clicking a tile.
action signifies the reason for view change and can be one of the following values: "prev", "prev2", "next", "next2", "drillUp", "drillDown", "onChange".
n/a({ action, activeStartDate, value, view }) => alert('New view is: ', view)
prev2AriaLabelaria-label attribute of the "previous on higher level" button on the navigation pane.n/a"Jump backwards"
prev2LabelContent of the "previous on higher level" button on the navigation pane. Setting the value explicitly to null will hide the icon."ÂŤ"
  • String: "ÂŤ"
  • React element: <DoublePreviousIcon />
prevAriaLabelaria-label attribute of the "previous" button on the navigation pane.n/a"Previous"
prevLabelContent of the "previous" button on the navigation pane. Setting the value explicitly to null will hide the icon."‹"
  • String: "‹"
  • React element: <PreviousIcon />
returnValueWhich dates shall be passed by the calendar to the onChange function and onClick{Period} functions. Can be "start", "end" or "range". The latter will cause an array with start and end values to be passed."start""range"
selectRangeWhether the user shall select two dates forming a range instead of just one. Note: This feature will make react-calendar return array with two dates regardless of returnValue setting.falsetrue
showDoubleViewWhether to show two months/years/… at a time instead of one. Defaults showFixedNumberOfWeeks prop to be true.falsetrue
showFixedNumberOfWeeksWhether to always show fixed number of weeks (6). Forces showNeighboringMonth prop to be true.falsetrue
showNavigationWhether a navigation bar with arrows and title shall be rendered.truefalse
showNeighboringCenturyWhether decades from next century shall be rendered to fill the entire last row in.falsetrue
showNeighboringDecadeWhether years from next decade shall be rendered to fill the entire last row in.falsetrue
showNeighboringMonthWhether days from previous or next month shall be rendered if the month doesn't start on the first day of the week or doesn't end on the last day of the week, respectively.truefalse
showWeekNumbersWhether week numbers shall be shown at the left of MonthView or not.falsetrue
tileClassNameClass name(s) that will be applied to a given calendar item (day on month view, month on year view and so on).n/a
  • String: "class1 class2"
  • Array of strings: ["class1", "class2 class3"]
  • Function: ({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 3 ? 'wednesday' : null
tileContentAllows to render custom content within a given calendar item (day on month view, month on year view and so on).n/a
  • String: "Sample"
  • React element: <TileContent />
  • Function: ({ activeStartDate, date, view }) => view === 'month' && date.getDay() === 0 ? <p>It's Sunday!</p> : null
tileDisabledPass a function to determine if a certain day should be displayed as disabled.n/a({ activeStartDate, date, view }) => date.getDay() === 0
valueCalendar value. Can be either one value or an array of two values. If you wish to use react-calendar in an uncontrolled way, use defaultValue instead.n/a
  • Date: new Date()
  • String: 2017-01-01
  • An array of dates: [new Date(2017, 0, 1), new Date(2017, 7, 1)]
  • An array of strings: ['2017-01-01', '2017-08-01']
viewDetermines which calendar view shall be opened. Does not disable navigation. Can be "month", "year", "decade" or "century". If you wish to use react-calendar in an uncontrolled way, use defaultView instead.The most detailed view allowed"year"

MonthView, YearView, DecadeView, CenturyView

Displays a given month, year, decade and a century, respectively.

Props

Prop nameDescriptionDefault valueExample values
activeStartDateThe beginning of a period that shall be displayed.n/anew Date(2017, 0, 1)
hoverThe date over which the user is hovering. Used only when selectRange is enabled, to render a “WIP” range when the user is selecting range.n/anew Date(2017, 0, 1)
maxDateMaximum date that the user can select. Periods partially overlapped by maxDate will also be selectable, although react-calendar will ensure that no later date is selected.n/aDate: new Date()
minDateMinimum date that the user can select. Periods partially overlapped by minDate will also be selectable, although react-calendar will ensure that no earlier date is selected.n/aDate: new Date()
onClickFunction called when the user clicks an item (day on month view, month on year view and so on).n/a(value) => alert('New date is: ', value)
tileClassNameClass name(s) that will be applied to a given calendar item (day on month view, month on year view and so on).n/a
  • String: "class1 class2"
  • Array of strings: ["class1", "class2 class3"]
  • Function: ({ date, view }) => view === 'month' && date.getDay() === 3 ? 'wednesday' : null
tileContentAllows to render custom content within a given item (day on month view, month on year view and so on). Note: For tiles with custom content you might want to set fixed height of react-calendar__tile to ensure consistent layout.n/a({ date, view }) => view === 'month' && date.getDay() === 0 ? <p>It's Sunday!</p> : null
valueCalendar value. Can be either one value or an array of two values.n/a
  • Date: new Date()
  • An array of dates: [new Date(2017, 0, 1), new Date(2017, 7, 1)]
  • String: 2017-01-01
  • An array of strings: ['2017-01-01', '2017-08-01']

Useful links

License

The MIT License.

Author

Wojciech Maj Wojciech Maj

Thank you

Sponsors

Thank you to all our sponsors! Become a sponsor and get your image on our README on GitHub.

Backers

Thank you to all our backers! Become a backer and get your image on our README on GitHub.

Top Contributors

Thank you to all our contributors that helped on this project!

Top Contributors