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-pickerProps
| Prop | Type | Default | Description |
|---|---|---|---|
| value | Date | - | - |
| defaultValue | Date | - | - |
| onValueChange | (date: Date) => void | - | - |
| placeholder | string | "Pick a date" | - |
| format | (date: Date) => string | - | Custom display formatter. |
| min | Date | - | - |
| max | Date | - | - |
| showTime | boolean | false | Adds 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. |