MCPcopy Index your code
hub / github.com/gpbl/react-day-picker

github.com/gpbl/react-day-picker @v10.0.1 sqlite

repository ↗ · DeepWiki ↗ · release v10.0.1 ↗
860 symbols 3,093 edges 902 files 24 documented · 3% 83 cross-repo links
README

React DayPicker

DayPicker is a React component for creating date pickers, calendars, and date inputs for web applications.

@daypicker/react is the preferred package name for DayPicker v10 and newer.

Documentation

See daypicker.dev for guides, examples, and API reference, or read the v10 docs in the repository.

Screenshot of DayPicker displaying the September 2025 calendar, with the date range from the 17th to the 20th selected.

Features

DayPicker is written in TypeScript and compiled to CommonJS and ESM. It relies on date-fns for date manipulation and formatting.

Installation

Install the preferred DayPicker package name:

npm install @daypicker/react

npm version npm downloads Min gzipped size

Example

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."
      }
    />
  );
}

Compatibility

DayPicker is compatible with React 16.8 and later.

License

DayPicker is released under the MIT License.

Community

Ask for help and share your experience with DayPicker:

Sponsors

Thank you to everyone supporting DayPicker - your sponsorship keeps this project maintained and evolving.

AlexKDawson amplify-education bedandbreakfasteu CHECK24 dimitur2204 flexbox github indeedeng katyabilokur severinlandolt syntaxfm Thinkmill thnxdev tjfred35 wilsonadenuga

  • 🎗️ Become a sponsor: https://github.com/sponsors/gpbl

Extension points exported contracts — how you extend this code

Calendar (Interface)
(no doc)
packages/react-day-picker/src/useCalendar.ts
EthiopicDate (Interface)
(no doc)
packages/ethiopic/src/ethiopic/utils/EthiopicDate.ts
CreateNoonOverridesOptions (Interface)
(no doc)
packages/persian/src/noonDateLib.ts
ButtonProps (Interface)
(no doc)
apps/shadcn-app-workspace/src/components/ui/button.tsx
Props (Interface)
(no doc)
apps/website/src/components/BrowserWindow.tsx
ButtonProps (Interface)
(no doc)
apps/shadcn-app-v9/src/components/ui/button.tsx
Matchers (Interface)
(no doc)
test/jest-custom-matchers.d.ts
CreateNoonOverridesOptions (Interface)
(no doc)
packages/react-day-picker/src/noonDateLib.ts

Core symbols most depended-on inside this repo

toGregorianDate
called by 118
packages/ethiopic/src/ethiopic/utils/toGregorianDate.ts
dateButton
called by 107
test/elements.ts
formatMonthYear
called by 99
packages/react-day-picker/src/classes/DateLib.ts
grid
called by 83
test/elements.ts
gridcell
called by 75
test/elements.ts
format
called by 74
packages/hijri/src/hijri/lib/format.ts
setTestTime
called by 61
test/setTestTime.ts
toEthiopicDate
called by 58
packages/ethiopic/src/ethiopic/utils/toEthiopicDate.ts

Shape

Function 801
Interface 26
Method 18
Class 10
Enum 5

Languages

TypeScript100%

Modules by API surface

test/elements.ts12 symbols
packages/hebrew/src/hebrew/utils/calendarMath.ts12 symbols
scripts/publish-packages.ts10 symbols
packages/react-day-picker/src/classes/DateLib.ts10 symbols
apps/website/src/components/PlaygroundV9/LocalizationFieldset.tsx10 symbols
apps/website/src/components/Playground/LocalizationFieldset.tsx10 symbols
test/jest-custom-matchers.d.ts9 symbols
packages/react-day-picker/src/useAnimation.ts9 symbols
packages/hijri/src/hijri/lib/format.ts9 symbols
test/dateMatchers.ts8 symbols
packages/hijri/src/hijri/utils/range.ts8 symbols
packages/hebrew/src/hebrew/lib/format.ts8 symbols

Dependencies from manifests, versioned

@biomejs/biome2.4.12 · 1×
@changesets/changelog-github0.5.2 · 1×
@changesets/cli2.31.0 · 1×
@date-fns/tz1.4.1 · 1×
@daypicker/buddhistworkspace:^ · 1×
@daypicker/ethiopicworkspace:^ · 1×
@daypicker/hebrewworkspace:^ · 1×
@daypicker/hijriworkspace:^ · 1×
@daypicker/persianworkspace:^ · 1×
@daypicker/reactworkspace:* · 1×
@docusaurus/core3.10.1 · 1×
@docusaurus/faster3.10.1 · 1×

For agents

$ claude mcp add react-day-picker \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact