---
id: interface
title: Interfaces
---
<a id="docs"></a> 

## DayPickerProps

The props used by the [DayPicker](#daypicker) component.
<hr/>




<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`className?:`** [`string`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string)

CSS class to add to the root element.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`classNames?:`** [`DayPickerClassNames`](./type#daypickerclassnames)

Change the class names used by `DayPicker`.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`components?:`** [`CustomComponents`](./type#customcomponents)

Customize the internal components.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`days?:`** [`DaysModifiers`](./type#daysmodifiers)

An object of modifiers.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`daysClassNames?:`** [`DaysClassNames`](./type#daysclassnames)

Change the class names used for the [days modifiers](#day).

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`daysStyles?:`** [`DaysStyles`](./type#daysstyles)

Change the inline style for the [days modifiers](#day).

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`dir?:`** [`string`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string)

The text direction of the calendar. Use `ltr` for left-to-right (default)or `rtl` for right-to-left.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`disabled?:`** [`DayMatcher`](./type#daymatcher)

Disable the matching days. Disabled days cannot be clicked.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`enableOutsideDaysClick?:`** [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean)

Enable click event for outside days when [showOutsideDays](#showoutsidedays) is used.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`fixedWeeks?:`** [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean)

Display six weeks per months, regardless the month’s number of weeks. Outsidedays will be always shown when setting this prop.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`formatCaption?:`** [`MonthCaptionFormatter`](./type#monthcaptionformatter)

Format the month caption text.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`formatDay?:`** [`DayFormatter`](./type#dayformatter)

Format the content of the day element.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`formatWeekNumber?:`** [`WeekNumberFormatter`](./type#weeknumberformatter)

Format the week numbers (when [showWeekNumber](#showweeknumber) is set).

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`formatWeekdayName?:`** [`WeekdayNameFormatter`](./type#weekdaynameformatter)

Format the weekday's name in the head element.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`fromMonth?:`** [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)

Allow navigation after (and including) the specified month.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`hidden?:`** [`DayMatcher`](./type#daymatcher)

Hide the matching days.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`initialMonth?:`** [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)

The initial month to show in the calendar.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`locale?:`** [`dateFns.Locale`](https://date-fns.org/docs/Locale)

A locale object to localizethe user interface.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`month?:`** [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)

The rendered month. Implement [onMonthChange](#onmonthchange) to enable monthsnavigation.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`nextLabel?:`** [`string`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string)

Label used for the next month button in [Navigation](#navigation). Set it to emptystring to hide the button.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`numberOfMonths?:`** [`number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number)

The number of months to render.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`onDayClick?:`** [`DayClickEventHandler`](./type#dayclickeventhandler)

Event handler when the user clicks on a day.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`onMonthChange?:`** [`MonthChangeEventHandler`](./type#monthchangeeventhandler)

Event handler when the month changes.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`onNextClick?:`** [`MonthChangeEventHandler`](./type#monthchangeeventhandler)

Event handler when the next month button is clicked.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`onPrevClick?:`** [`MonthChangeEventHandler`](./type#monthchangeeventhandler)

Event handler when the previous month button is clicked.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`pagedNavigation?:`** [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean)

When displaying multiple months, the navigation will be paginateddisplaying the [numberOfMonths](#numberofmonths) months at time instead ofone.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`prevLabel?:`** [`string`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string)

Label used for the previous month button in [Navigation](#navigation). Set it toempty string to hide the button.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`reverseMonths?:`** [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean)

Render the months in reversed order. Useful when [numberOfMonths](#numberofmonths) isgreater than `1`, to display the most recent month first.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`selected?:`** [`DayMatcher`](./type#daymatcher)

Apply the `selected` modifiers to the matching days.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`showCaption?:`** [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean)

Show the month’s caption. As default, the caption displays month and year.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`showHead?:`** [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean)

Show the month’s head. As default, it displays the weekday names accordingto [locale](#locale).

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`showNavigation?:`** [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean)

Show the navigation bar. [onMonthChange](#onmonthchange) must be set.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`showOutsideDays?:`** [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean)

Show the outside days. An outside day is a day falling in the next or theprevious month.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`showWeekNumber?:`** [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean)

Show the week numbers column.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`style?:`** [`CSSProperties`](undefined)

Style to apply to the root element.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`styles?:`** [`DayPickerStyles`](./type#daypickerstyles)

Change the inline styles for each [DayPicker element](./enumerations#daypickerelements).

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`toMonth?:`** [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)

Allow navigation before (and including) the specified month.



## DayProps

The props used by the [Day](#day) component.
<hr/>




<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`currentMonth:`** [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)

The month the calendar belongs to. Used to calulate outside days.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`day:`** [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)

The day to display in the calendar.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`dayPickerProps:`** [`DayPickerProps`](./interface#daypickerprops)

Reference to the props used by the DayPicker component.



## HeadProps

The props used by the [Head](#head) component.
<hr/>




<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`dayPickerProps:`** [`DayPickerProps`](./interface#daypickerprops)

Reference to the props used by the DayPicker component.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`locale:`** [`DateFns.Locale`](undefined)



<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`showWeekNumber?:`** [`boolean`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean)

Add a column to accommodate the week numbers.



## MonthCaptionProps

The props used by the [MonthCaption](#monthcaption) component.
<hr/>




<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`dayPickerProps:`** [`DayPickerProps`](./interface#daypickerprops)

Reference to the props used by the DayPicker component.

<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`month:`** [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)

The month the caption is referring to.



## MonthTableProps

Props of the [Month](#month) component.
<hr/>




<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`dayPickerProps:`** [`DayPickerProps`](./interface#daypickerprops)



<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`month:`** [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)





## NavigationProps

Props for the [Navigation](#navigation) component.
<hr/>




<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`dayPickerProps:`** [`DayPickerProps`](./interface#daypickerprops)





## WeekNumberProps

Props for the [WeekNumber](#weeknumber) component.
<hr/>




<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`dayPickerProps:`** [`DayPickerProps`](./interface#daypickerprops)



<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`days:`** [[`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)]



<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`number:`** [`number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number)





## WeekRowProps


<hr/>




<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`currentMonth:`** [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)



<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`dayPickerProps:`** [`DayPickerProps`](./interface#daypickerprops)



<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`week:`** [[`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date)]



<a class="interface-syntax"></a>

<a class="syntax"></a>

`prop `**`weekNumber:`** [`number`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number)




