Homecomponentsinput
DatePicker
An input that allows picking a day or day range.
Display a field that pops open a calendar asking for a day or day range.
Single day
Use single as mode to display a field asking for a single day.
Day Range
Use range as mode to display a field asking for a range of day.
API
type
Required
range
single
onChange
Required
((selected?: Date | undefined) => void) | ((selected?: DateRange | undefined) => void)
name
Required
string
value
Date | DateRange
placeholder
string
id
string
label
string
tip
string
secondaryLabel
ReactNode
description
string
errorMessage
string
disabled
true
false
placeholderStart
string
placeholderEnd
string