Skip to main content
Version: 8.10.1

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

Source​

src/types/DayPickerBase.ts:237