# React date picker libraries

React date picker libraries render a calendar, a date input, or both, for choosing a date, a range, or a date and time. These libraries let booking, scheduling, and reporting screens accept dates entered with a mouse, a keyboard, or a screen reader.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [React DayPicker](#react-daypicker) | 188.7M | 6.9K | Sep 2026 | MIT |
| [MUI X Date Pickers](#mui-x-date-pickers) | 27.2M | 5.9K | Nov 2026 | MIT |
| [react-datepicker](#react-datepicker) | 26.9M | 8.4K | Dec 2025 | MIT |
| [rc-picker](#rc-picker) | 12.0M | 306 | Feb 2025 | MIT |
| [@react-aria/datepicker](#react-aria-datepicker) | 10.4M | 16.1K | May 2026 | Apache-2.0 |
| [Mantine Dates](#mantine-dates) | 6.9M | 32.0K | Nov 2026 | MIT |
| [@zag-js/date-picker](#zag-js-date-picker) | 6.7M | 5.3K | Nov 2026 | MIT |
| [react-calendar](#react-calendar) | 5.8M | 3.8K | Apr 2026 | MIT |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[React DayPicker](#react-daypicker) has the most monthly downloads in this comparison, at 184.5M.

## Capabilities

| Library | Time selection API | Multiple date selection |
| --- | --- | --- |
| [React DayPicker](#react-daypicker) | No | Yes |
| [MUI X Date Pickers](#mui-x-date-pickers) | Yes | No |
| [react-datepicker](#react-datepicker) | Yes | Yes |
| [rc-picker](#rc-picker) | Yes | Yes |
| [@react-aria/datepicker](#react-aria-datepicker) | Yes | No |
| [Mantine Dates](#mantine-dates) | Yes | Yes |
| [@zag-js/date-picker](#zag-js-date-picker) | Yes | Yes |
| [react-calendar](#react-calendar) | No | No |

## Libraries

### React DayPicker

[GitHub](https://github.com/gpbl/react-day-picker) · [npm](https://www.npmjs.com/package/react-day-picker) · [Docs](https://daypicker.dev)

React DayPicker is a React component for building date pickers, calendars, and date inputs. The `mode` prop selects one day, several days, or a range, and `selected` with `onSelect` keep the choice in component state. A default stylesheet ships with the package, and any CSS framework can restyle it. Localization covers languages and time zones, and add-on packages bring Persian, Hijri, Buddhist, Ethiopic, and Hebrew calendars. The newest major version publishes under the package name `@daypicker/react`, and its date math runs on date-fns.

- Downloads / mo: 188.7M
- Stars: 6.9K
- Last release: 10.0.2
- License: MIT
- Capabilities: [From the React DayPicker docs](https://daypicker.dev)

**Strengths**

- **Selects continuous date ranges.** Set mode to range and constrain the selected number of nights.
- **Adapts to application styling.** Extend the default CSS, or restyle the calendar with any CSS framework.

**Watch out for**

- **Ranges can include disabled dates.** Enable excludeDisabled to reset ranges that cross unavailable dates.
- **Calendar add-ons install separately.** Install a matching add-on when using a non-Gregorian calendar.

```sh
npm install react react-dom react-day-picker
```

**shadcn-ui/ui** (128.0K stars)

[shadcn-ui/ui](https://github.com/shadcn-ui/ui) 

```typescript
function Calendar({
  className,
  classNames,
  showOutsideDays = true,
  captionLayout = "label",
  buttonVariant = "ghost",
  formatters,
  components,
  ...props
}: React.ComponentProps<typeof DayPicker> & {
  buttonVariant?: React.ComponentProps<typeof Button>["variant"]
}) {
  const defaultClassNames = getDefaultClassNames()

  return (
    <DayPicker
      showOutsideDays={showOutsideDays}
      className={cn(
        "group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",
        String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
        String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
        className
      )}
      captionLayout={captionLayout}
      formatters={{
        formatMonthDropdown: (date) =>
          date.toLocaleString("default", { month: "short" }),
        ...formatters,
      }}
      classNames={{
        root: cn("w-fit", defaultClassNames.root),
        months: cn(
          "relative flex flex-col gap-4 md:flex-row",
          defaultClassNames.months
        ),
        month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
        nav: cn(
          "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
          defaultClassNames.nav
        ),
        button_previous: cn(
          buttonVariants({ variant: buttonVariant }),
          "size-(--cell-size) p-0 select-none aria-disabled:opacity-50",
          defaultClassNames.button_previous
        ),
        button_next: cn(
          buttonVariants({ variant: buttonVariant }),
          "size-(--cell-size) p-0 select-none aria-disabled:opacity-50",
          defaultClassNames.button_next
        ),
        month_caption: cn(
          "flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)",
          defaultClassNames.month_caption
        ),
        dropdowns: cn(
          "flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",
          defaultClassNames.dropdowns
        ),
        dropdown_root: cn(
          "relative rounded-md border border-input shadow-xs has-focus:border-ring has-focus:ring-[3px] has-focus:ring-ring/50",
          defaultClassNames.dropdown_root
        ),
        dropdown: cn(
          "absolute inset-0 bg-popover opacity-0",
          defaultClassNames.dropdown
        ),
        caption_label: cn(
          "font-medium select-none",
          captionLayout === "label"
            ? "text-sm"
            : "flex h-8 items-center gap-1 rounded-md pr-1 pl-2 text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground",
          defaultClassNames.caption_label
        ),
        month_grid: cn("w-full border-collapse", defaultClassNames.month_grid),
        weekdays: cn("flex", defaultClassNames.weekdays),
        weekday: cn(
          "flex-1 rounded-md text-[0.8rem] font-normal text-muted-foreground select-none",
          defaultClassNames.weekday
        ),
        week: cn("mt-2 flex w-full", defaultClassNames.week),
        week_number_header: cn(
          "w-(--cell-size) select-none",
          defaultClassNames.week_number_header
        ),
        week_number: cn(
          "text-[0.8rem] text-muted-foreground select-none",
          defaultClassNames.week_number
        ),
        day: cn(
          "group/day relative aspect-square h-full w-full p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-r-md",
          props.showWeekNumber
            ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md"
            : "[&:first-child[data-selected=true]_button]:rounded-l-md",
          defaultClassNames.day
        ),
        range_start: cn(
          "rounded-l-md bg-accent",
          defaultClassNames.range_start
        ),
        range_middle: cn("rounded-none", defaultClassNames.range_middle),
        range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
        today: cn(
          "rounded-md bg-accent text-accent-foreground data-[selected=true]:rounded-none",
          defaultClassNames.today
        ),
        outside: cn(
          "text-muted-foreground aria-selected:text-muted-foreground",
          defaultClassNames.outside
        ),
        disabled: cn(
          "text-muted-foreground opacity-50",
          defaultClassNames.disabled
        ),
        hidden: cn("invisible", defaultClassNames.hidden),
        ...classNames,
      }}
      components={{
        Root: ({ className, rootRef, ...props }) => {
          return (
            <div
              data-slot="calendar"
              ref={rootRef}
              className={cn(className)}
              {...props}
            />
          )
        },
        Chevron: ({ className, orientation, ...props }) => {
          if (orientation === "left") {
            return (
              <ChevronLeftIcon className={cn("size-4", className)} {...props} />
            )
          }

          if (orientation === "right") {
            return (
              <ChevronRightIcon
                className={cn("size-4", className)}
                {...props}
              />
            )
          }

          return (
            <ChevronDownIcon className={cn("size-4", className)} {...props} />
          )
        },
        DayButton: CalendarDayButton,
        WeekNumber: ({ children, ...props }) => {
          return (
            <td {...props}>
              <div className="flex size-(--cell-size) items-center justify-center text-center">
                {children}
              </div>
            </td>
          )
        },
        ...components,
      }}
      {...props}
    />
  )
}

```

[apps/v4/registry/new-york-v4/ui/calendar.tsx](https://github.com/shadcn-ui/ui/blob/e62c9435fff729a175f38983dee73b2cb4f6a069/apps/v4/registry/new-york-v4/ui/calendar.tsx#L18-L180) · [More projects using React DayPicker →](https://dashboard.exa.ai/playground/search?q=React%20TypeScript%20applications%20using%20react-day-picker%20for%20date%20input%2C%20calendar%20selection%2C%20localized%20captions%20and%20form%20validation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

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

```

From [README.md](https://github.com/gpbl/react-day-picker/blob/main/README.md)

### MUI X Date Pickers

[GitHub](https://github.com/mui/mui-x) · [npm](https://www.npmjs.com/package/@mui/x-date-pickers) · [Docs](https://mui.com/x/react-date-pickers/)

MUI X Date Pickers is a set of React components for choosing dates, times, and date-time values, built on Material Design. Every picker sits inside a `LocalizationProvider`, which takes an adapter for the date library the app uses, such as Day.js. The free Community package, under the MIT license, includes date, time, and date-time pickers. Range pickers belong to the Pro package, which requires a commercial license.

- Downloads / mo: 27.2M
- Stars: 5.9K
- Last release: 9.18.0
- License: MIT
- Capabilities: [From the MUI X Date Pickers docs](https://mui.com/x/react-date-pickers/)

**Strengths**

- **Blocks unavailable date choices.** Use shouldDisableDate to prevent selection of application-specific unavailable dates.
- **Customizes internal picker components.** Replace picker slots to fit existing application controls.

**Watch out for**

- **Timezones need a compatible adapter.** Use the Day.js adapter when UTC and timezone support are required.
- **Today stays fixed after mounting.** Past and future validation use the provider’s initial current time.
- **Range pickers in Pro.** Date and time range pickers need the commercially licensed Pro package.

```sh
npm install react react-dom @mui/x-date-pickers @mui/material @emotion/react @emotion/styled dayjs
```

**eclipsesource/jsonforms** (2.8K stars)

[eclipsesource/jsonforms](https://github.com/eclipsesource/jsonforms) 

```typescript
export const MaterialDateControl = (props: ControlProps) => {
  const [focused, onFocus, onBlur] = useFocus();
  const inputVariant = useInputVariant();
  const {
    description,
    id,
    errors,
    label,
    uischema,
    visible,
    enabled,
    required,
    path,
    handleChange,
    data,
    config,
  } = props;
  const isValid = errors.length === 0;
  const appliedUiSchemaOptions = merge({}, config, uischema.options);
  const showDescription = !isDescriptionHidden(
    visible,
    description,
    focused,
    appliedUiSchemaOptions.showUnfocusedDescription
  );

  const [key, setKey] = useState<number>(0);
  const [open, setOpen] = useState<boolean>(false);

  const format = appliedUiSchemaOptions.dateFormat ?? 'YYYY-MM-DD';
  const saveFormat = appliedUiSchemaOptions.dateSaveFormat ?? defaultDateFormat;

  const views = appliedUiSchemaOptions.views ?? ['year', 'day'];
  const closeOnSelect = appliedUiSchemaOptions.closeOnSelect ?? true;

  const firstFormHelperText = showDescription
    ? description
    : !isValid
    ? errors
    : null;
  const secondFormHelperText = showDescription && !isValid ? errors : null;

  const updateChild = useCallback(() => setKey((key) => key + 1), []);

  const onChange = useMemo(
    () => createOnChangeHandler(path, handleChange, saveFormat),
    [path, handleChange, saveFormat]
  );

  const onBlurHandler = useMemo(
    () =>
      createOnBlurHandler(
        path,
        handleChange,
        format,
        saveFormat,
        updateChild,
        onBlur
      ),
    [path, handleChange, format, saveFormat, updateChild, onBlur]
  );
  const value = getData(data, saveFormat);

  if (!visible) {
    return null;
  }

  return (
    <LocalizationProvider dateAdapter={AdapterDayjs}>
      <DatePicker
        open={open}
        onOpen={() => setOpen(true)}
        onClose={() => setOpen(false)}
        key={key}
        label={label}
        value={value}
        onAccept={onChange}
        format={format}
        views={views}
        disabled={!enabled}
        closeOnSelect={closeOnSelect}
        slotProps={{
          actionBar: ({ pickerVariant }) => ({
            actions:
              pickerVariant === 'desktop' ? [] : ['clear', 'cancel', 'accept'],
          }),
          textField: {
            id: id + '-input',
            required: required && !appliedUiSchemaOptions.hideRequiredAsterisk,
            error: !isValid,
            fullWidth: !appliedUiSchemaOptions.trim,
            variant: inputVariant,
            slotProps: {
              htmlInput: {
                autoFocus: appliedUiSchemaOptions.focus,
                type: 'text',
                onFocus: onFocus,
                onBlur: onBlurHandler,
              },
              inputLabel: data ? { shrink: true } : undefined,
            },
          },
        }}
      />
      <FormHelperText error={!isValid && !showDescription}>
        {firstFormHelperText}
      </FormHelperText>
      <FormHelperText error={!isValid}>{secondFormHelperText}</FormHelperText>
    </LocalizationProvider>
  );
};
```

[packages/material-renderers/src/controls/MaterialDateControl.tsx](https://github.com/eclipsesource/jsonforms/blob/2030dbb6ec49a62c7aa8ca79142e40a7e5ed2bc0/packages/material-renderers/src/controls/MaterialDateControl.tsx#L48-L158) · [More projects using MUI X Date Pickers →](https://dashboard.exa.ai/playground/search?q=React%20TypeScript%20applications%20using%20%40mui/x-date-pickers%20for%20date%20input%2C%20calendar%20selection%2C%20localized%20captions%20and%20form%20validation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```typescript
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs';
import { DatePicker } from '@mui/x-date-pickers/DatePicker';
export default function App() {
  return <LocalizationProvider dateAdapter={AdapterDayjs}><DatePicker /></LocalizationProvider>;
}

```

From [quickstart](https://mui.com/x/react-date-pickers/quickstart/)

### react-datepicker

[GitHub](https://github.com/Hacker0x01/react-datepicker) · [npm](https://www.npmjs.com/package/react-datepicker)

react-datepicker is a date input with a popup calendar for React. `selected` holds the current date, `onChange` receives each new value, and the package's CSS file supplies the default look. `showTimeSelect` adds time selection to the same picker, so one control sets both a date and a time. Locales other than US English come from date-fns, imported and registered with the picker.

- Downloads / mo: 26.9M
- Stars: 8.4K
- Last release: 9.1.0
- License: MIT
- Capabilities: [From the react-datepicker docs](https://github.com/Hacker0x01/react-datepicker)

**Strengths**

- **Combines date and time selection.** Enable showTimeSelect when a form needs both a date and time.
- **Localizes picker display components.** Import a locale and register it for the picker.

**Watch out for**

- **Timezone conversion needs another library.** Use date-fns-tz when dates need conversion between timezones.

```sh
npm install react react-dom react-datepicker
```

**payloadcms/payload** (45.9K stars)

[payloadcms/payload](https://github.com/payloadcms/payload) 

```typescript
const onChange: Extract<
    DatePickerProps,
    { selectsMultiple?: false; selectsRange?: false }
  >['onChange'] = (incomingDate, event) => {
    const newDate = incomingDate

    const inputValue =
      event?.target instanceof HTMLInputElement
        ? event.target.value
        : !event
          ? rejectedInputValueRef.current
          : undefined

    if (
      hasAmbiguousYearInput({
        date: newDate,
        dateFormat: overrides?.dateFormat ?? dateFormat,
        inputValue,
        locale: overrides?.locale,
      })
    ) {
      const picker = datePickerRef.current

      rejectedInputValueRef.current = inputValue
      picker?.setPreSelection(picker.calcInitialState().preSelection)
      return
    }
    rejectedInputValueRef.current = undefined

    if (newDate instanceof Date && ['dayOnly', 'default', 'monthOnly'].includes(pickerAppearance)) {
      const tzOffset = incomingDate.getTimezoneOffset() / 60
      newDate.setHours(12 - tzOffset, 0)
    }

    if (newDate instanceof Date && !dateFormat.includes('SSS')) {
      // Unless the dateFormat includes milliseconds, set milliseconds to 0
      // This is to ensure that the timestamp is consistent with the displayFormat
      newDate.setMilliseconds(0)
    }

    if (typeof onChangeFromProps === 'function') {
      onChangeFromProps(newDate)
    }
  }
```

[packages/ui/src/elements/DatePicker/DatePicker.tsx](https://github.com/payloadcms/payload/blob/577d34328ef2eec454cdff9d1e72a38811c3513b/packages/ui/src/elements/DatePicker/DatePicker.tsx#L159-L202) · [More projects using react-datepicker →](https://dashboard.exa.ai/playground/search?q=React%20TypeScript%20applications%20using%20react-datepicker%20for%20date%20input%2C%20calendar%20selection%2C%20localized%20captions%20and%20form%20validation&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```typescript
import React, { useState } from "react";
import DatePicker from "react-datepicker";

import "react-datepicker/dist/react-datepicker.css";

const Example = () => {
  const [startDate, setStartDate] = useState(new Date());
  return <DatePicker selected={startDate} onChange={(date) => setStartDate(date)} />;
};

```

From [README.md](https://github.com/Hacker0x01/react-datepicker/blob/main/README.md)

### rc-picker

[GitHub](https://github.com/react-component/picker) · [npm](https://www.npmjs.com/package/rc-picker) · [Docs](https://react-component.github.io/picker)

rc-picker is the date and time picker that Ant Design builds on, now published under the name `@rc-component/picker`. It exports a single picker, a range picker, and a panel without a popup, with modes for dates, times, weeks, months, quarters, and years. A `generateConfig` adapter connects it to the app's date library, whether Day.js, date-fns, Luxon, or Moment, and a locale package sets the language. Presets, disabled dates, and custom cell rendering are set through props.

- Downloads / mo: 12.0M
- Stars: 306
- Last release: 4.11.3
- License: MIT
- Capabilities: [From the rc-picker docs](https://react-component.github.io/picker)

**Strengths**

- **Week, quarter, and year modes.** The same picker selects weeks, months, quarters, or years, as well as single dates.

**Watch out for**

- **Renamed package.** The README now installs `@rc-component/picker`, the new name for `rc-picker`.

```sh
npm install react react-dom rc-picker dayjs
```

**jd-opensource/drip-table** (1.7K stars)

[jd-opensource/drip-table](https://github.com/jd-opensource/drip-table) 

```tsx
(props) => {
  const { date } = props;

  if (!moment(date[0]).isValid() || !moment(date[1]).isValid()) {
    return <div>非法日期</div>;
  }

  return (
    <RangePicker
      {...props}
      open
      prefixCls={prefixCls}
      generateConfig={momentGenerateConfig}
      locale={zh}
      value={[moment(date[0]), moment(date[1])]}
      allowClear
    />
  );
}
```

[packages/drip-table/src/components/react-components/date-picker/index.tsx](https://github.com/jd-opensource/drip-table/blob/00fb48d268a59cc9be6fc9a16b1cf71f79e1619f/packages/drip-table/src/components/react-components/date-picker/index.tsx) · [More projects using rc-picker →](https://dashboard.exa.ai/playground/search?q=rc-picker%20GitHub%20projects)

**Quickstart**

```tsx
import Picker from 'rc-picker';
import enUS from 'rc-picker/lib/locale/en_US';
import dayjsGenerateConfig from 'rc-picker/lib/generate/dayjs';
import 'rc-picker/assets/index.css';
export default function App() {
  return <Picker locale={enUS} generateConfig={dayjsGenerateConfig} />;
}

```

From [README.md](https://cdn.jsdelivr.net/npm/rc-picker@4.11.3/README.md)

### @react-aria/datepicker

[GitHub](https://github.com/adobe/react-spectrum) · [npm](https://www.npmjs.com/package/@react-aria/datepicker) · [Docs](https://github.com/adobe/react-spectrum#readme)

@react-aria/datepicker provides hooks with the behavior and accessibility of a date field and a date picker, and no markup or styles of its own. `useDateField` shows each part of a date, such as the month, day, and year, as a separate segment edited from the keyboard, and `useDatePicker` joins a field with a calendar popover. State comes from the companion `@react-stately/datepicker` package. Both belong to React Aria, Adobe's library of unstyled components and hooks.

- Downloads / mo: 10.4M
- Stars: 16.1K
- Last release: 3.17.1
- License: Apache-2.0
- Capabilities: [From the @react-aria/datepicker docs](https://github.com/adobe/react-spectrum#readme)

**Strengths**

- **Segmented keyboard entry.** Each part of the date is its own segment, typed or stepped with the arrow keys.

**Watch out for**

- **App renders every element.** The input segments, the button, and the popover are all markup the app writes and styles.

```sh
npm install react react-dom @react-aria/datepicker @react-stately/datepicker
```

**adaptui/react** (212 stars)

[adaptui/react](https://github.com/adaptui/react) 

```tsx
export function useDatePickerState<T extends DateValue>({
  state,
  ...props
}: DatePickerStateProps<T>): DatePickerState {
  const ref = useRef<HTMLElement>(null);
  const datepicker = useDatePicker(props, state.datepicker, ref);

  return { ...datepicker, ref, baseState: state };
}

```

[src/datepicker/datepicker-state.ts](https://github.com/adaptui/react/blob/0be2be926f268ce9474566018d92071e37e8ff1c/src/datepicker/datepicker-state.ts#L8-L16) · [More projects using @react-aria/datepicker →](https://dashboard.exa.ai/playground/search?q=%40react-aria/datepicker%20GitHub%20projects)

**Quickstart**

```tsx
import { useRef } from 'react';
import { useDatePicker } from '@react-aria/datepicker';
import { useDatePickerState } from '@react-stately/datepicker';
export function useBasicDatePicker() {
  const props = { label: 'Date' };
  const state = useDatePickerState(props);
  const ref = useRef(null);
  return useDatePicker(props, state, ref);
}

```

From [useDatePicker.ts](https://github.com/adobe/react-spectrum/blob/3577a20859b9585a000010c720f6ee39c1c588cc/packages/react-aria/src/datepicker/useDatePicker.ts)

### Mantine Dates

[GitHub](https://github.com/mantinedev/mantine) · [npm](https://www.npmjs.com/package/@mantine/dates) · [Docs](https://mantine.dev/dates/getting-started/)

Mantine Dates, the `@mantine/dates` package, provides date inputs, pickers, and calendars that match Mantine's other components. `DatePickerInput` renders a field that opens a calendar, with its value and `onChange` held in React state. Values are date strings in year, month, and day order, with no time zone attached, and Day.js handles date math as a required dependency. The package's stylesheet has to be imported after the Mantine core styles.

- Downloads / mo: 6.9M
- Stars: 32.0K
- Last release: 9.8.1
- License: MIT
- Capabilities: [From the Mantine Dates docs](https://mantine.dev/dates/getting-started/)

**Watch out for**

- **Day.js required.** The components depend on Day.js, which can't be swapped for another date library.

```sh
npm install react react-dom @mantine/core @mantine/hooks @mantine/dates dayjs
```

**metabase/metabase** (50.4K stars)

[metabase/metabase](https://github.com/metabase/metabase) 

```tsx
export function SingleDatePickerBody({
  value,
  hasTime,
  minDate,
  maxDate,
  onChange,
}: SingleDatePickerBodyProps) {
  const [date, setDate] = useState<Date>(value);

  const handleDateChange = (newDate: DateStringValue | null) => {
    if (newDate) {
      onChange(setDatePart(value, dayjs(newDate).toDate()));
    }
  };

  const handleTimeChange = (newTime: Date | null) => {
    if (newTime) {
      onChange(setTimePart(value, newTime));
    }
  };

  return (
    <Stack>
      <DateInput
        value={value}
        date={date}
        minDate={minDate}
        maxDate={maxDate}
        popoverProps={{ opened: false }}
        aria-label={t`Date`}
        onChange={handleDateChange}
        onDateChange={(val) => val && setDate(dayjs(val).toDate())}
      />
      {hasTime && (
        <TimeInput
          value={value}
          aria-label={t`Time`}
          onChange={handleTimeChange}
        />
      )}
      <DatePicker
        value={value}
        date={date}
        minDate={minDate}
        maxDate={maxDate}
        onChange={handleDateChange}
        onDateChange={(val) => val && setDate(dayjs(val).toDate())}
      />
    </Stack>
  );
}

```

[frontend/src/metabase/querying/common/components/DatePicker/SpecificDatePicker/SingleDatePicker/SingleDatePickerBody/SingleDatePickerBody.tsx](https://github.com/metabase/metabase/blob/bdb858bffd850d44d18a56331ca200fa537565ab/frontend/src/metabase/querying/common/components/DatePicker/SpecificDatePicker/SingleDatePicker/SingleDatePickerBody/SingleDatePickerBody.tsx#L18-L68) · [More projects using Mantine Dates →](https://dashboard.exa.ai/playground/search?q=%40mantine/dates%20GitHub%20projects)

**Quickstart**

```tsx
import { useState } from 'react';
import { DatePickerInput } from '@mantine/dates';

function Demo() {
  const [value, setValue] = useState<string | null>(null);
  return (
    <DatePickerInput
      label="Pick date"
      placeholder="Pick date"
      value={value}
      onChange={setValue}
    />
  );
}

```

From [getting-started](https://mantine.dev/dates/getting-started/)

### @zag-js/date-picker

[GitHub](https://github.com/chakra-ui/zag) · [npm](https://www.npmjs.com/package/@zag-js/date-picker) · [Docs](https://github.com/chakra-ui/zag#readme)

@zag-js/date-picker holds the logic of a date picker as a state machine, covering keyboard interaction, focus management, and ARIA attributes, and leaves the markup and styling to the app. In React, `useMachine` from `@zag-js/react` runs the machine, and `connect` turns its state into props for the app's own elements. The same machine runs through adapters for Vue, Solid, and Svelte.

- Downloads / mo: 6.7M
- Stars: 5.3K
- Last release: 1.48.0
- License: MIT
- Capabilities: [From the @zag-js/date-picker docs](https://github.com/chakra-ui/zag#readme)

**Strengths**

- **One picker across frameworks.** React, Vue, Solid, and Svelte apps share the same date picker machine.

**Watch out for**

- **App renders every element.** Zag supplies props and state only, so the input, calendar grid, and popover are written by the app.

```sh
npm install react react-dom @zag-js/date-picker @zag-js/react @internationalized/date
```

**chakra-ui/ark** (5.5K stars)

[chakra-ui/ark](https://github.com/chakra-ui/ark) 

```tsx
export const useDatePicker = (props?: UseDatePickerProps): UseDatePickerReturn => {
  const id = useId()
  const { getRootNode } = useEnvironmentContext()
  const { dir, locale } = useLocaleContext()

  const machineProps: datePicker.Props = {
    id,
    dir,
    locale,
    getRootNode,
    ...props,
  }

  const service = useMachine(datePicker.machine, machineProps)
  return datePicker.connect(service, normalizeProps)
}
```

[packages/react/src/components/date-picker/use-date-picker.ts](https://github.com/chakra-ui/ark/blob/0a6ee9ebec4a719f3d4ebb9c92b4ff069ba9a915/packages/react/src/components/date-picker/use-date-picker.ts) · [More projects using @zag-js/date-picker →](https://dashboard.exa.ai/playground/search?q=%40zag-js/date-picker%20GitHub%20projects)

**Quickstart**

```tsx
import * as datePicker from '@zag-js/date-picker';
import { normalizeProps, useMachine } from '@zag-js/react';
import { useId } from 'react';
export default function DateInputSlot() {
  const service = useMachine(datePicker.machine, { id: useId() });
  const api = datePicker.connect(service, normalizeProps);
  return <input {...api.getInputProps()} />;
}

```

From [date-picker](https://zagjs.com/components/react/date-picker)

### react-calendar

[GitHub](https://github.com/wojtekmaj/react-calendar) · [npm](https://www.npmjs.com/package/react-calendar) · [Docs](https://github.com/wojtekmaj/react-calendar#readme)

react-calendar renders a full interactive calendar for React, with views for days, months, years, and decades. `value` and `onChange` hold the selection, which is a single date or, with range selection turned on, a pair of dates. The package needs no Moment.js, supports almost any language, and ships an optional stylesheet as a base for custom styles.

- Downloads / mo: 5.8M
- Stars: 3.8K
- Last release: 6.0.1
- License: MIT
- Capabilities: [From the react-calendar docs](https://github.com/wojtekmaj/react-calendar#readme)

**Strengths**

- **Decade to day views.** Users move between decade, year, month, and day views to reach a date.

**Watch out for**

- **Calendar only.** The package renders the calendar itself. A text input that opens it comes from the companion react-date-picker package.

```sh
npm install react react-dom react-calendar
```

**horizon-ui/horizon-tailwind-react** (484 stars)

[horizon-ui/horizon-tailwind-react](https://github.com/horizon-ui/horizon-tailwind-react) 

```tsx
const MiniCalendar = () => {
  const [value, onChange] = useState(new Date());

  return (
    <div>
      <Card extra="flex w-full h-full flex-col px-3 py-3">
        <Calendar
          onChange={onChange}
          value={value}
          prevLabel={<MdChevronLeft className="ml-1 h-6 w-6 " />}
          nextLabel={<MdChevronRight className="ml-1 h-6 w-6 " />}
          view={"month"}
        />
      </Card>
    </div>
  );
};
```

[src/components/calendar/MiniCalendar.jsx](https://github.com/horizon-ui/horizon-tailwind-react/blob/8f17779f2b45419112f32541bb555817dabc5b7c/src/components/calendar/MiniCalendar.jsx) · [More projects using react-calendar →](https://dashboard.exa.ai/playground/search?q=react-calendar%20GitHub%20projects)

**Quickstart**

```tsx
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>
  );
}

```

From [README.md](https://github.com/wojtekmaj/react-calendar/blob/main/packages/react-calendar/README.md)

## FAQ

### Which React date picker library should I use?

For a styled picker with little setup, [React DayPicker](#react-daypicker) and [react-datepicker](#react-datepicker) render a finished calendar from one component, and react-datepicker adds time selection. Inside a Material UI or Mantine app, use [MUI X Date Pickers](#mui-x-date-pickers) or [Mantine Dates](#mantine-dates). For custom markup with built-in accessibility, use [@react-aria/datepicker](#react-aria-datepicker).

### How do I add a calendar to a React app?

Install `react-calendar`, import `Calendar`, and render it with `value` and `onChange` held in state. Import `react-calendar/dist/Calendar.css` for the default styles, or style it from scratch.

### How do I use the MUI date picker?

Install `@mui/x-date-pickers` and a date library such as Day.js, wrap the app in `LocalizationProvider` with the matching adapter, then render `DatePicker`. Date, time, and date-time pickers are free under the MIT license. Range pickers belong to the Pro package, which requires a commercial license.

### How do I build a date range picker in React?

In [React DayPicker](#react-daypicker), set `mode` to `range`, which also accepts minimum and maximum lengths. [react-calendar](#react-calendar) supports range selection, and [rc-picker](#rc-picker) exports a separate `RangePicker`. MUI X range pickers need the commercial Pro package.

### What is React DayPicker?

DayPicker is a React component for building date pickers, calendars, and date inputs, styled with its own CSS or any CSS framework. It selects one day, several days, or a range, and the newest major version publishes as `@daypicker/react`.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "Best React date picker libraries DayPicker react-datepicker React-Date-Picker MUI X examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
