Interface: UseInputOptions
Hierarchyβ
Pick
<DayPickerBase
,"locale"
|"fromDate"
|"toDate"
|"fromMonth"
|"toMonth"
|"fromYear"
|"toYear"
|"today"
>β³
UseInputOptions
Propertiesβ
defaultSelectedβ
β’ Optional
defaultSelected: Date
The initially selected date
Defined inβ
formatβ
β’ Optional
format: string
The format string for formatting the input field. See https://date-fns.org/docs/format for a list of format strings. Default to PP
.
Defined inβ
fromDateβ
β’ Optional
fromDate: Date
The earliest day to start the month navigation.
Inherited fromβ
Pick.fromDate
Defined inβ
fromMonthβ
β’ Optional
fromMonth: Date
The earliest month to start the month navigation.
Inherited fromβ
Pick.fromMonth
Defined inβ
fromYearβ
β’ Optional
fromYear: number
The earliest year to start the month navigation.
Inherited fromβ
Pick.fromYear
Defined inβ
localeβ
β’ Optional
locale: Locale
The date-fns locale object used to localize dates. Defaults to* en-US
.
Inherited fromβ
Pick.locale
Defined inβ
requiredβ
β’ Optional
required: boolean
Make the selection required.
Defined inβ
toDateβ
β’ Optional
toDate: Date
The latest day to end the month navigation.
Inherited fromβ
Pick.toDate
Defined inβ
toMonthβ
β’ Optional
toMonth: Date
The latest month to end the month navigation.
Inherited fromβ
Pick.toMonth
Defined inβ
toYearβ
β’ Optional
toYear: number
The latest year to end the month navigation.
Inherited fromβ
Pick.toYear
Defined inβ
todayβ
β’ Optional
today: Date
The todayβs date. Default is the current date. This Date will get the
today
modifier to style the day.
Inherited fromβ
Pick.today