Open-source project
gpbl/react-day-picker avatar
gpbl/react-day-picker

React DayPicker v10: the @daypicker/react rename, date-fns underneath, and calendars as add-on packages

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.

6,863 stars785 forksTypeScriptMIT

At a glance

What is it?
gpbl/react-day-picker is the TypeScript monorepo behind DayPicker, a React component for date pickers, calendars and date inputs on the web. Version 10 moves the preferred package name to @daypicker/react, keeps date-fns as its date engine, and ships non-Gregorian calendars as separate @daypicker/* packages.
Who is it for?
DayPicker fits React web apps that need a calendar or date input with single, multiple, range or custom day selection, CSS-level styling control, localization and time zone support, and WCAG 2.1 AA accessibility, all under the MIT license. It is not the pick for React Native, and teams that do not want date-fns in their bundle should weigh that dependency.
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 35 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 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • gpbl/react-day-picker6,863 ★ · +10
Star history
Repository2026-09-232026-11-25
gpbl/react-day-picker6.9k6.9k

10 Stars in the last 63 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

v10 moves the preferred package name to @daypicker/react

The biggest practical change in DayPicker v10 is the package name. For v10 and newer, the preferred name is @daypicker/react, and the install line is:

bash
npm install @daypicker/react

The repository is still gpbl/react-day-picker, and the workspace build still produces a package filtered as react-day-picker next to @daypicker/react. Its root package.json runs build:react-day-picker first and then build:daypicker-react. For readers this means two names will show up in search results, tutorials and lockfiles. Code written for v9 and older imports from react-day-picker; the v10 example imports from @daypicker/react. When you copy an example, check which name it uses before mixing it into a project that already depends on the other one.

v10.0.0 shipped on 2026-05-08, followed by v10.0.1 on 2026-05-15 and v10.0.2 on 2026-09-30. The last push to main was on 2026-10-21.

A single-date picker is one component, one state hook and one stylesheet

The smallest working DayPicker is a controlled component. You keep the selected date in React state, pass it to DayPicker with a selection mode, and import the bundled stylesheet:

tsx
import { useState } from "react";

import { DayPicker } from "@daypicker/react";
import "@daypicker/react/style.css";

function MyDatePicker() {
  const [selected, setSelected] = useState<Date>();

  return (
    <DayPicker
      mode="single"
      selected={selected}
      onSelect={setSelected}
      footer={
        selected ? `Selected: ${selected.toLocaleDateString()}` : "Pick a day."
      }
    />
  );
}

Three props carry the selection: mode picks the selection behavior, selected holds the current value, and onSelect receives the new value. The footer prop renders content under the calendar, here a line that switches between a prompt and the chosen date. Because the component does not own the value, your form or store decides what happens on selection. The import of @daypicker/react/style.css is what gives the calendar its default look; leave it out and you are styling from scratch.

Selection modes: single, multiple, range, or your own logic

The mode prop is how DayPicker switches between its selection behaviors. The built-in modes cover a single day, multiple days and a range of days, and the custom selections guide on daypicker.dev covers cases those three do not fit. The examples/ folder in the repository holds focused files for these patterns, including Controlled.tsx, ControlledSelection.tsx and ControlledMonthFocus.tsx, each paired with a .test.tsx file.

Every mode in that list works on days. If your form needs a time of day alongside the date, plan for a separate input next to the calendar rather than expecting DayPicker to provide one. The guide on input fields at daypicker.dev covers wiring the calendar to a text input, which is the usual shape of a date field in a form.

date-fns comes along whether your app uses it or not

DayPicker is written in TypeScript, compiled to both CommonJS and ESM, and relies on date-fns for date manipulation and formatting. That dependency is not optional. If your project already standardizes on date-fns, DayPicker fits in with no second date library. If your project uses a different library for dates, DayPicker still pulls date-fns into your dependency tree, and you will be converting between your own date representation and the Date objects DayPicker passes to onSelect.

Time zones follow the same route. The workspace devDependencies include @date-fns/tz, and the test suite has a dedicated test:tz script that runs with TZ=Australia/Adelaide against examples/timezone. There is also an AsiaSaigonTimezone.tsx example with its own test. The time zone guide at daypicker.dev is the place to read before rendering calendars for users in a zone different from the server's.

Persian, Hijri, Buddhist, Ethiopic and Hebrew calendars are separate installs

DayPicker can be localized into any language, and it supports the ISO 8601 calendar and the broadcast calendar. The Persian, Hijri, Buddhist (Thai), Ethiopic and Hebrew calendars come through @daypicker/* add-on packages, not the core component. In the workspace these add-ons are built by build:calendar-packages, which filters every @daypicker/* package except @daypicker/react.

The consequence is that installing @daypicker/react alone does not give you those calendars. You add the matching package, and you track its version alongside the core one. The repository has a check:versions script for its own releases, which tells you the packages are versioned together; in your app, upgrade core and add-on at the same time. The examples folder includes Buddhist.tsx, BuddhistEn.tsx and BroadcastCalendar.tsx as starting points.

Styling stays minimal so your CSS does the work

DayPicker ships a minimal design meant to be restyled with plain CSS or any CSS framework. The examples folder shows the main approaches side by side: CssModules.tsx, CssVariables.tsx, and animation variants in Animate.tsx, AnimateCSSVars.tsx, AnimateRange.tsx and AnimateRtl.tsx. Anatomy.tsx lays out the parts of the rendered calendar, and CustomCaption.tsx shows replacing one of them.

When CSS is not enough, DayPicker accepts custom components to extend the rendered elements, and an extensive set of props controls the calendar's behavior. The component also complies with WCAG 2.1 AA requirements, with AccessibleDatePicker.tsx and AutoFocus.tsx as worked examples. If you replace rendered elements with your own components, keeping that compliance becomes your responsibility, so check the accessibility guide before swapping out buttons or grid cells.

It is a web component for React 16.8 and later, not React Native

DayPicker is compatible with React 16.8 and later, and it is described as a component for web applications. Its styling model is CSS, its default look comes from a stylesheet import, and its accessibility target is WCAG, all of which assume a browser DOM. A React Native app cannot use it as-is.

The Node requirement in package.json is a separate matter. The root workspace declares node >=20 and pins [email protected], but that applies to contributors building the monorepo, not to apps installing the package from npm. Contributors also work with Biome for linting, Prettier for formatting, Jest for tests and Changesets for release notes. Help is available through GitHub Discussions, and bugs go to the issue tracker.

Editorial conclusion

DayPicker fits React web apps that need a calendar or date input with single, multiple, range or custom day selection, CSS-level styling control, localization and time zone support, and WCAG 2.1 AA accessibility, all under the MIT license. It is not the pick for React Native, and teams that do not want date-fns in their bundle should weigh that dependency. Before upgrading or starting, confirm which package name your code and tutorials use (@daypicker/react for v10, current release v10.0.2) and whether you need an add-on package for Persian, Hijri, Buddhist, Ethiopic or Hebrew calendars.

Frequently asked questions

what is react day picker

React DayPicker is an MIT-licensed React component for building date pickers, calendars and date inputs in web applications. It is written in TypeScript, compiled to CommonJS and ESM, and uses date-fns for date handling.

how to install react day picker

For DayPicker v10 and newer, install the preferred package name with npm install @daypicker/react, then import DayPicker from @daypicker/react and its stylesheet from @daypicker/react/style.css.

Can I use a date picker in React Native?

React DayPicker is built for web applications, styled with CSS and targets React 16.8 and later in the browser. It is not a React Native component.

react day picker alternative

The React DayPicker README does not compare itself with other date pickers. When evaluating it, the points to check are its date-fns dependency, its day-based selection modes, and whether you need an @daypicker/* add-on for non-Gregorian calendars.

Official sources

  1. gpbl/react-day-picker on GitHub
  2. License: MIT
  3. Project website
  4. README
  5. Releases
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.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/gpbl-react-day-picker.svg)](https://hysenlabs.com/projects/gpbl-react-day-picker)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/gpbl-react-day-picker.svg)](https://hysenlabs.com/projects/gpbl-react-day-picker)

Was this useful?