Components/Date Picker

Date Picker

Compact input that opens a Calendar in a popover. Built on top of Calendar + Popover.


Installation

npx ajaxui add date-picker

Props

PropTypeDefaultDescription
valueDate--
defaultValueDate--
onValueChange(date: Date) => void--
placeholderstring"Pick a date"-
format(date: Date) => string-Custom display formatter.
minDate--
maxDate--
showTimebooleanfalseAdds a time field to the popover; picking a day keeps it open, OK closes. The Date carries hours/minutes and the default format includes them.