Interface: DayPickerRangeProps
The props for the DayPicker component when using mode="range"
.
Extendsβ
Propertiesβ
ISOWeek?β
optional
ISOWeek:boolean
Use ISO week dates instead of the locale setting. Setting this prop will ignore weekStartsOn and firstWeekContainsDate.
Seeβ
https://en.wikipedia.org/wiki/ISO_week_date
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:200
captionLayout?β
optional
captionLayout:CaptionLayout
Change the layout of the caption:
buttons
: display prev/right buttonsdropdown
: display drop-downs to change the month and the year
Note: the dropdown
layout is available only when fromDate
,
fromMonth
orfromYear
and toDate
, toMonth
or toYear
are set.
Default Valueβ
buttons
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:145
className?β
optional
className:string
The CSS class to add to the container element. To change the name of the
class instead, use classNames.root
.
Inherited fromβ
Sourceβ
classNames?β
optional
classNames:Partial
<StyledElement
<string
>>
Change the class names of the HTML elements.
Use this prop when you need to change the default class names β for example when using CSS modules.
Inherited fromβ
Sourceβ
components?β
optional
components:CustomComponents
Map of components used to create the layout. Look at the components source to understand how internal components are built and provide your custom components.
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:208
defaultMonth?β
optional
defaultMonth:Date
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 []] and [onMonthChange.
Default Valueβ
The current month
Inherited fromβ
Sourceβ
dir?β
optional
dir:string
The text direction of the calendar. Use ltr
for left-to-right (default)
or rtl
for right-to-left.
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:264
disableNavigation?β
optional
disableNavigation:boolean
Disable the navigation between months.
Default Valueβ
false
Inherited fromβ
DayPickerBase
. disableNavigation
Sourceβ
src/types/DayPickerBase.ts:119
disabled?β
Apply the disabled
modifier to the matching days.
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:223
firstWeekContainsDate?β
optional
firstWeekContainsDate:1
|4
The day of January, which is always in the first week of the year. Can be
either Monday (1
) or Thursday (4
).
Seeβ
Inherited fromβ
DayPickerBase
. firstWeekContainsDate
Sourceβ
src/types/DayPickerBase.ts:193
fixedWeeks?β
optional
fixedWeeks:boolean
Display six weeks per months, regardless the monthβs number of weeks. To use this prop, showOutsideDays must be set.
Default Valueβ
false
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:152
footer?β
optional
footer:ReactNode
Content to add to the table footer element.
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:211
formatters?β
optional
formatters:Partial
<Formatters
>
A map of formatters. Use the formatters to override the default formatting functions.
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:258
fromDate?β
optional
fromDate:Date
The earliest day to start the month navigation.
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:103
fromMonth?β
optional
fromMonth:Date
The earliest month to start the month navigation.
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:107
fromYear?β
optional
fromYear:number
The earliest year to start the month navigation.
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:111
hidden?β
Apply the hidden
modifier to the matching days. Will hide them from the
calendar.
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:228
hideHead?β
optional
hideHead:boolean
Hide the monthβs head displaying the weekday names.
Default Valueβ
false
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:158
id?β
optional
id:string
A unique id to replace the random generated id β used by DayPicker for accessibility.
Inherited fromβ
Sourceβ
initialFocus?β
optional
initialFocus:boolean
When a selection mode is set, DayPicker will focus the first selected day (if set) or the today's date (if not disabled).
Use this prop when you need to focus DayPicker after a user actions, for improved accessibility.
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:220
labels?β
optional
labels:Partial
<Labels
>
Labels creators to override the defaults. Use this prop to customize the ARIA labels attributes.
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:252
lang?β
optional
lang:string
Add the language tag to the container element.
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:276
locale?β
optional
locale:Locale
The date-fns locale object used to localize dates.
Default Valueβ
en-US
Inherited fromβ
Sourceβ
src/types/DayPickerBase.ts:246
max?β
optional
max:number
The maximum amount of days that can be selected.
Sourceβ
src/types/DayPickerRange.ts:18
min?β
optional
min:number
The minimum amount of days that can be selected.
Sourceβ
src/types/DayPickerRange.ts:16
modeβ
mode:
"range"