react-calendar's user guide documents 4.x while the latest release is 6.0.1
Ultimate calendar for your React app.
At a glance
- What is it?
- wojtekmaj/react-calendar is an MIT licensed calendar component for React, last pushed 2026-09-09 with releases v6.0.1 from 2026-04-07 and v6.0.0 from 2025-05-29. Its own user guide states it is written for the 4.x branch, the quick links stop at v2.x, and the root package is a private monorepo at version 1.0.0.
- Who is it for?
- React-calendar fits an application that needs a date picker with range selection and localisation, without pulling a date library that bundles its own locale data, because it works from the platform Intl API and needs no moment.js. Three things to check first.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 5 days ago.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- wojtekmaj/react-calendar3,789 ★ · +0
| Repository | 2026-09-24 | 2026-11-22 |
|---|---|---|
| wojtekmaj/react-calendar | 3.8k | 3.8k |
0 Stars in the last 59 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The user guide on the default branch is written for 4.x
The document says so itself, in a section placed before anything else.
React-calendar is under constant development, this documentation is written for the react-calendar 4.x branch, and if you want documentation for another version you should use the dropdown on the repository page to switch to the appropriate tag.
The quick links offered underneath only go further back, to v3.x and to v2.x. There is no link to 5.x or 6.x documentation, so a reader on the default branch who is looking for the props table is reading a table written two majors ago, and the two ways the document suggests for reaching other versions both mean leaving the page.
The release list makes the gap concrete. The recent tags are v6.0.1 on 2026-04-07, v6.0.0 on 2025-05-29 and v5.1.0 on 2024-10-23. So 4.x was superseded by 5.x in October 2024 and by 6.x in May 2025.
There is a second tension in the same paragraph. The claim of constant development sits next to a release history of roughly six months to a year between tags, and the last commit on the default branch is dated 2026-09-09, five months after the newest tag.
The root package is a private monorepo at version 1.0.0
The manifest at the repository root is not the library.
It is named `react-calendar-monorepo`, version `1.0.0`, `private: true`, and described as the react-calendar monorepo. The library lives in a workspace under `packages/`, and the workspaces field lists `packages/*` and `test`.
So there are three version numbers in play for one project: the published library at v6.0.1, the monorepo root at 1.0.0, and whatever the workspace package declares. A version check written against the wrong one gets an answer that means nothing.
The scripts are all delegation. Build runs the build in the `react-calendar` workspace, dev runs that workspace's watch task alongside the test workspace, and format, lint, test, tsc and unit each fan out across every workspace with `yarn workspaces foreach --all run <script>`.
The toolchain is pinned in two places. `packageManager` is `[email protected]`, with a `.yarnrc.yml` and a `yarn.lock` at the root, and the only root dependency is `husky` at ^9.0.0, installed by a `postinstall` script that also sets up the `.husky/` directory for commit hooks. Linting and formatting are handled by a single `biome.json`.
Calendar types change the week, not only the labels
One prop in the table carries more behaviour than its name suggests.
`calendarType` takes `'gregory'`, `'hebrew'`, `'islamic'` or `'iso8601'`, and the default is described as the type of calendar most commonly used in a given locale. The consequences are spelled out in the same cell.
Setting it to `"gregory"` or `"hebrew"` changes the first day of the week to Sunday. Setting it to `"islamic"` changes the first day of the week to Saturday. And setting it to `"islamic"` or `"hebrew"` makes weekends appear on Friday to Saturday.
So the prop controls three separate things at once: which numbering system labels the months, which day the grid starts on, and which two days count as the weekend. A component that renders a week view and a component that colours weekend days will therefore disagree if they are passed different calendar types, and the ISO 8601 option is the one that leaves both alone.
That is a genuinely different model from the usual calendar picker, where the calendar system is a display concern and the week is always Monday or Sunday according to the locale.
Controlled and uncontrolled modes need different props
The basic usage example shows the controlled shape of the whole API:
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>
);
}Two rows of the props table are about how the component is driven rather than what it shows.
`activeStartDate` is the beginning of a period that shall be displayed, and its default is today. The description then says that if you wish to use react-calendar in an uncontrolled way, use `defaultActiveStartDate` instead. That is the React controlled and uncontrolled convention applied to the visible month, so a component that never lets the user change months needs the default-prefixed prop rather than passing a fixed value.
`allowPartialRange` controls whether `onChange` is called with only a partial result, given the `selectRange` prop. It defaults to `false`. In other words, with range selection in progress, the default is to stay silent until a complete range exists, and the opt-in is what makes a half-finished range reach your state.
The value type in that example is the other half of the contract. A single date is a `Date` or null, and a range is a two-element tuple of those, so the same prop carries both shapes and the component decides which one it is.
`className` is described as class names added along with `"react-calendar"` to the main `<div>` element, which tells you the wrapper always carries its own class and your names are additive rather than a replacement.
The default stylesheet is imported from a path inside the distribution, `react-calendar/dist/Calendar.css`, which is a deep import into a build directory rather than an export from the package root.
Modern browsers only, and Intl.js for the locales it lacks
The compatibility section is short and honest about what the design costs.
Your project needs React 16.8 or later. Beyond that, the document says react-calendar uses modern web technologies, which is why it is fast, lightweight and easy to style, and that this comes at a cost: only modern browsers are supported, with a link to the browser support data for internationalization.
So the dependency on the platform Intl API is the mechanism, and the platform's locale coverage is the limit. That is a reasonable trade for a component that carries no date library of its own, and the feature list makes the same trade explicitly with the line about not needing moment.js.
The escape hatch is documented in its own subsection. If your locale is not supported, you can use Intl.js or another Intl polyfill alongside the component.
That is a runtime dependency decision rather than a configuration flag: the component asks the platform for month and weekday names, and where the platform cannot answer, a polyfill has to answer instead. Which locales those are is a moving target tied to the browser, not to the release.
The sample app carries its own lockfile and its own build
The demo is a separate package, and the repository says so twice.
A minimal demo page is in the `sample` directory, and an online demo is published at the project's own site. For anything beyond the basics, the document points at a Recipes page in the project wiki rather than at files in the repository, which means the more advanced examples live somewhere the package manager never sees.
The `sample` directory is a full application rather than a snippet. It has its own `package.json`, its own `yarn.lock`, a Vite config, a tsconfig, an `index.html`, and the sample component with its own stylesheet. A nested lockfile means the demo resolves its dependencies independently of the root, so a broken dependency in the demo does not affect the library build and a fix in the library does not reach the demo until its lockfile moves.
The test directory is a workspace in its own right, listed alongside the packages, and the root scripts fan out to it like any other workspace. So the repository has three dependency graphs: the library, the demo, and the tests.
Editorial conclusion
React-calendar fits an application that needs a date picker with range selection and localisation, without pulling a date library that bundles its own locale data, because it works from the platform Intl API and needs no moment.js. Three things to check first. Read the documentation version before you trust a prop, since the user guide on the default branch describes 4.x, two majors behind v6.0.1, and the quick links only go back to v2.x. Decide how you will pin, because the newest tag is from April while the branch has moved since September, and the release history is measured in months rather than weeks. And confirm your browser target, because the project states plainly that using modern web technologies costs it support for older browsers, with an Intl polyfill offered for missing locales. MIT licensed, React 16.8 and newer, four calendar types, and a monorepo layout where the sample app carries its own lockfile.
Frequently asked questions
How do I install react-calendar?
Run npm install react-calendar or yarn add react-calendar, then import the default export with import Calendar from 'react-calendar' and render <Calendar />, using the onChange prop for new values. Your project needs React 16.8 or later.
What is react-calendar?
An MIT licensed calendar component for React that can pick days, months, years or decades, supports range selection, supports virtually any language, and needs no moment.js. Default styling is optional and imported from react-calendar/dist/Calendar.css. The calendarType prop accepts gregory, hebrew, islamic and iso8601, and it changes the first day of the week as well as the weekend.
Which version of react-calendar does the README document?
The document says the user guide is written for the 4.x branch, while the recent releases are v6.0.1 on 2026-04-07, v6.0.0 on 2025-05-29 and v5.1.0 on 2024-10-23. Quick links are provided only to the v3.x and v2.x documentation, so the default branch props table is two majors behind the current release.
Does react-calendar support older browsers?
The document states that the project uses modern web technologies and that this comes at the cost of supporting only modern browsers, linking to the internationalization browser support data. If your locale is not supported, it points at Intl.js or another Intl polyfill to use alongside the component.
Does react-calendar report a half-finished date range?
Only if you ask for it. The allowPartialRange prop decides whether onChange is called with only a partial result when the selectRange prop is in use, and it defaults to false, so the default behaviour is to wait for a complete range.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/wojtekmaj-react-calendar)Star history chart for your README
[](https://hysenlabs.com/projects/wojtekmaj-react-calendar)Was this useful?