Skip to main content

Interface: UseInput#

Represent the value returned by useInput.

Properties#

dayPickerProps#

dayPickerProps: UseInputDayPickerProps

The props to pass to a DayPicker component: <DayPicker {...dayPickerProps} />


fieldProps#

fieldProps: UseInputFieldProps

The props to pass to an input field: <input {...fieldProps} />


reset#

reset: () => void

A function to reset to the initial state.

Type declaration:#

▸ (): void

Returns: void


setSelected#

setSelected: (day: Date) => void

A function to set the selected day.

Type declaration:#

▸ (day: Date): void

Parameters:#

NameType
dayDate

Returns: void