Interface: UseInputOptions
Extendsβ
Pick
<DayPickerBase
,"locale"
|"fromDate"
|"toDate"
|"fromMonth"
|"toMonth"
|"fromYear"
|"toYear"
|"today"
>
Propertiesβ
defaultSelected?β
optional
defaultSelected:Date
The initially selected date
Sourceβ
src/hooks/useInput/useInput.ts:53
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 Valueβ
PP
Sourceβ
src/hooks/useInput/useInput.ts:60
fromDate?β
optional
fromDate:Date
The earliest day to start the month navigation.
Inherited fromβ
Pick.fromDate
Sourceβ
src/types/DayPickerBase.ts:103
fromMonth?β
optional
fromMonth:Date
The earliest month to start the month navigation.
Inherited fromβ
Pick.fromMonth
Sourceβ
src/types/DayPickerBase.ts:107
fromYear?β
optional
fromYear:number
The earliest year to start the month navigation.
Inherited fromβ
Pick.fromYear
Sourceβ
src/types/DayPickerBase.ts:111
locale?β
optional
locale:Locale
The date-fns locale object used to localize dates.
Default Valueβ
en-US
Inherited fromβ
Pick.locale
Sourceβ
src/types/DayPickerBase.ts:246
required?β
optional
required:boolean
Make the selection required.
Sourceβ
src/hooks/useInput/useInput.ts:62
toDate?β
optional
toDate:Date
The latest day to end the month navigation.
Inherited fromβ
Pick.toDate
Sourceβ
src/types/DayPickerBase.ts:105
toMonth?β
optional
toMonth:Date
The latest month to end the month navigation.
Inherited fromβ
Pick.toMonth
Sourceβ
src/types/DayPickerBase.ts:109
toYear?β
optional
toYear:number
The latest year to end the month navigation.
Inherited fromβ
Pick.toYear
Sourceβ
src/types/DayPickerBase.ts:113
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