API and Development
DateInput from @prepared911/ui/date-input is a single-date field: a read-only formatted value and a calendar button that opens a Popover with a single-mode Calendar. Reset and Apply are required; day presses stay in a draft until Apply.
| Name | Type | Description |
|---|---|---|
applyLabel | LocalizedMessage | Apply in the calendar footer. |
resetLabel | LocalizedMessage | Reset in the calendar footer. |
| Name | Type | Description |
|---|---|---|
clearLabel | LocalizedMessage | Clear button on the field and in the panel. Commits null at once (reason InputChange), closes the popover and focuses the field. Required unless clearable={false}. |
clearable | boolean | When false, hides the clear button. Defaults to true. |
| Name | Type | Description |
|---|---|---|
value / defaultValue | Date | null | Local calendar day at midnight. |
onValueChange | handler | Fires when the committed value changes. |