DatePickerProps
Props of DatePicker
Properties
className?
optionalclassName:string
Additional CSS class names for outer container.
date?
optionaldate:string
Current date value in ISO UTC string format.
disabled?
optionaldisabled:boolean
Whether to disable user input — no open interaction possible.
enableTime?
optionalenableTime:boolean
Whether to enable time selection in addition to date selection.
inputId?
optionalinputId:string
Identifier of the internal input element.
label?
optionallabel:string
Text label displayed above the date picker.
onDateValueChange()?
optionalonDateValueChange: (date?) =>void
Triggered whenever the date value changes.
Parameters
date?
Date
object representing the selected date.
Returns
void
onOpenChange()?
optionalonOpenChange: (isOpen) =>void
Called whenever the calendar popover is opened or closed.
Parameters
isOpen
boolean
Whether the popover is currently open.
Returns
void
onTimeValueChange()?
optionalonTimeValueChange: (v) =>void
Triggered whenever the time value (hours/minutes) changes.
Parameters
v
Time
Returns
void
readOnly?
optionalreadOnly:boolean
Whether to make the picker read-only.
ref?
optionalref:RefObject<WithOpen>
Ref to control the picker from parent components.
Provides an open() method to manually open the date picker.
shouldLabelAnimate?
optionalshouldLabelAnimate:boolean
Whether to animate the label upwards when focused or filled.
skipAnimationOnce?
optionalskipAnimationOnce:boolean
Whether to skip label animation on the first render.
variant?
optionalvariant:null|"default"|"link"|"destructive"|"outline"|"secondary"|"ghost"|"icon"|"float"|"fullRounded"
Visual style variant of the picker button.