| mode | "single" | "multiple" | "range" | undefined | — | Enable the selection of a single day, multiple days, or a range of days. |
|---|
| required | boolean | undefined | — | Whether the selection is required. |
|---|
| className | string | undefined | — | Class name to add to the root element. |
|---|
| classNames | Partial<import("react-day-picker").ClassNames> | undefined | — | Change the class names used by DayPicker.
Use this prop when you need to change the default class names — for
example, when importing the style via CSS modules or when using a CSS
framework. |
|---|
| modifiersClassNames | import("react-day-picker").ModifiersClassNames | undefined | — | Change the class name for the day matching the modifiers. |
|---|
| style | React.CSSProperties | undefined | — | Style to apply to the root element. |
|---|
| styles | Partial<import("react-day-picker").Styles> | undefined | — | Change the inline styles of the HTML elements. |
|---|
| modifiersStyles | import("react-day-picker").ModifiersStyles | undefined | — | Change the class name for the day matching the {@link modifiers}. |
|---|
| id | string | undefined | — | A unique id to add to the root element. |
|---|
| defaultMonth | Date | undefined | — | The initial month to show in the calendar.
Use this prop to let DayPicker control the current month. If you need to
set the month programmatically, use {@link month} and {@link onMonthChange}. |
|---|
| month | Date | undefined | — | The month displayed in the calendar.
As opposed to defaultMonth, use this prop with onMonthChange to change
the month programmatically. |
|---|
| numberOfMonths | number | undefined | — | The number of displayed months. |
|---|
| startMonth | Date | undefined | — | The earliest month to start the month navigation. |
|---|
| endMonth | Date | undefined | — | The latest month to end the month navigation. |
|---|
| pagedNavigation | boolean | undefined | — | Paginate the month navigation displaying the numberOfMonths at a time. |
|---|
| reverseMonths | boolean | undefined | — | Render the months in reversed order (when {@link numberOfMonths} is set) to
display the most recent month first. |
|---|
| hideNavigation | boolean | undefined | — | Hide the navigation buttons. This prop won't disable the navigation: to
disable the navigation, use {@link disableNavigation}. |
|---|
| disableNavigation | boolean | undefined | — | Disable the navigation between months. This prop won't hide the navigation:
to hide the navigation, use {@link hideNavigation}. |
|---|
| captionLayout | "label" | "dropdown" | "dropdown-months" | "dropdown-years" | undefined | — | Show dropdowns to navigate between months or years.
- label: Displays the month and year as a label. Default value.
- dropdown: Displays dropdowns for both month and year navigation.
- dropdown-months: Displays a dropdown only for the month navigation.
- dropdown-years: Displays a dropdown only for the year navigation.
**Note:** By default, showing the dropdown will set the {@link startMonth}
to 100 years ago and {@link endMonth} to the end of the current year. You
can override this behavior by explicitly setting startMonth and
endMonth. |
|---|
| reverseYears | boolean | undefined | — | Reverse the order of years in the dropdown when using
captionLayout="dropdown" or captionLayout="dropdown-years". |
|---|
| navLayout | "around" | "after" | undefined | — | Adjust the positioning of the navigation buttons.
- around: Displays the buttons on either side of the caption.
- after: Displays the buttons after the caption. This ensures the tab order
matches the visual order.
If not set, DayPicker preserves its legacy layout, but the tab order may
not align with the visual order when using captionLayout="dropdown". |
|---|
| fixedWeeks | boolean | undefined | — | Display always 6 weeks per each month, regardless of the month’s number of
weeks. Weeks will be filled with the days from the next month. |
|---|
| hideWeekdays | boolean | undefined | — | Hide the row displaying the weekday row header. |
|---|
| showOutsideDays | boolean | undefined | true | Show the outside days (days falling in the next or the previous month).
**Note:** when a {@link broadcastCalendar} is set, this prop defaults to
true. |
|---|
| showWeekNumber | boolean | undefined | — | Show the week numbers column. Weeks are numbered according to the local
week index. |
|---|
| animate | boolean | undefined | — | Animate navigating between months. |
|---|
| broadcastCalendar | boolean | undefined | — | Display the weeks in the month following the broadcast calendar. Setting
this prop will ignore {@link weekStartsOn} (always Monday) and
{@link showOutsideDays} will default to true. |
|---|
| ISOWeek | boolean | undefined | — | Use ISO week dates instead of the locale setting. Setting this prop will
ignore weekStartsOn and firstWeekContainsDate. |
|---|
| timeZone | string | undefined | — | The time zone (IANA or UTC offset) to use in the calendar (experimental).
See
[Wikipedia](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
for the possible values. |
|---|
| noonSafe | boolean | undefined | — | Keep calendar math at noon in the configured {@link timeZone} to avoid
historical second-level offsets drifting dates across midnight.
This prop sets the time of the dates to noon (12:00). |
|---|
| components | Partial<import("react-day-picker").CustomComponents> | undefined | — | Change the components used for rendering the calendar elements. |
|---|
| footer | React.ReactNode | — | Add a footer to the calendar, acting as a live region.
Use this prop to communicate the calendar's status to screen readers.
Prefer strings over complex UI elements. |
|---|
| autoFocus | boolean | undefined | — | When a selection mode is set, DayPicker will focus the first selected day
(if set) or today's date (if not disabled).
Use this prop when you need to focus DayPicker after a user action, for
improved accessibility. |
|---|
| disabled | import("react-day-picker").Matcher | import("react-day-picker").Matcher[] | undefined | — | Apply the disabled modifier to the matching days. Disabled days cannot be
selected when in a selection mode is set. |
|---|
| hidden | import("react-day-picker").Matcher | import("react-day-picker").Matcher[] | undefined | — | Apply the hidden modifier to the matching days. Will hide them from the
calendar. |
|---|
| today | Date | undefined | — | The today’s date. Default is the current date. This date will get the
today modifier to style the day. |
|---|
| modifiers | Record<string, import("react-day-picker").Matcher | import("react-day-picker").Matcher[] | undefined> | undefined | — | Add modifiers to the matching days. |
|---|
| labels | Partial<import("react-day-picker").Labels> | undefined | — | Labels creators to override the defaults. Use this prop to customize the
aria-label attributes in DayPicker. |
|---|
| formatters | Partial<import("react-day-picker").Formatters> | undefined | — | Formatters used to format dates to strings. Use this prop to override the
default functions. |
|---|
| dir | string | undefined | — | The text direction of the calendar. Use ltr for left-to-right (default)
or rtl for right-to-left. |
|---|
| aria-label | string | undefined | — | The aria-label attribute to add to the container element. |
|---|
| aria-labelledby | string | undefined | — | The aria-labelledby attribute to add to the container element. |
|---|
| role | "dialog" | "application" | undefined | — | The role attribute to add to the container element. |
|---|
| nonce | string | undefined | — | A cryptographic nonce ("number used once") which can be used by Content
Security Policy for the inline style attributes. |
|---|
| title | string | undefined | — | Add a title attribute to the container element. |
|---|
| lang | string | undefined | — | Add the language tag to the container element.
When omitted, DayPicker uses the active locale code (locale.code). Set
this prop to override the language tag. |
|---|
| locale | Partial<import("react-day-picker").DayPickerLocale> | undefined | — | The locale object used to localize dates. Pass a locale from
react-day-picker/locale/<code> to localize the calendar. |
|---|
| numerals | import("react-day-picker").Numerals | undefined | — | The numeral system to use when formatting dates.
- latn: Latin (Western Arabic)
- arab: Arabic-Indic
- arabext: Eastern Arabic-Indic (Persian)
- deva: Devanagari
- beng: Bengali
- guru: Gurmukhi
- gujr: Gujarati
- orya: Oriya
- tamldec: Tamil
- telu: Telugu
- knda: Kannada
- mlym: Malayalam |
|---|
| weekStartsOn | 0 | 1 | 4 | 3 | 2 | 5 | 6 | undefined | — | The index of the first day of the week (0 - Sunday). Overrides the locale's
default. |
|---|
| firstWeekContainsDate | 1 | 4 | undefined | — | The day of January that is always in the first week of the year. |
|---|
| useAdditionalWeekYearTokens | boolean | undefined | — | Enable DD and DDDD for week year tokens when formatting or parsing
dates. |
|---|
| useAdditionalDayOfYearTokens | boolean | undefined | — | Enable YY and YYYY for day of year tokens when formatting or parsing
dates. |
|---|
| dateLib | Partial<DateLib> | undefined | — | Replace the default date library with a custom one. Experimental: not
guaranteed to be stable (may not respect semver). |
|---|
| todayLabel | string | undefined | "Today" | Word announced before today's date in day button names. Translate it with the rest of the interface, or replace labels.labelDayButton entirely. |
|---|
| selectedLabel | string | undefined | "selected" | Word announced after a selected date in day button names. |
|---|