Interface: DeliveryDateProps
Defined in: components/DeliveryDate.tsx:14
Properties
cart
cart:
Cart
Defined in: components/DeliveryDate.tsx:16
The cart to use for the delivery date
containerClass?
optionalcontainerClass?:string
Defined in: components/DeliveryDate.tsx:37
The CSS class for the container
formatDateDisplay?
optionalformatDateDisplay?: (date) =>string
Defined in: components/DeliveryDate.tsx:31
Custom date display formatting function
Parameters
date
string
Returns
string
initialDate?
optionalinitialDate?:string
Defined in: components/DeliveryDate.tsx:40
Pre-selected date from cart (e.g. cart.postageData.requestDate: "2026-04-17T00:00:00.000Z")
labels?
optionallabels?:Record<string,string>
Defined in: components/DeliveryDate.tsx:34
Labels for the component
onDateSelect?
optionalonDateSelect?: (date) =>void
Defined in: components/DeliveryDate.tsx:28
Fires when a delivery date is selected, with the ISO date string.
Parameters
date
string
Returns
void
showDatePicker?
optionalshowDatePicker?:boolean
Defined in: components/DeliveryDate.tsx:25
Show an "Other date..." tile that opens a date picker. Defaults to true.
showUpcomingDays?
optionalshowUpcomingDays?:number
Defined in: components/DeliveryDate.tsx:19
Number of upcoming days to offer as quick-pick tiles. Defaults to 3.
skipWeekends?
optionalskipWeekends?:boolean
Defined in: components/DeliveryDate.tsx:22
Skip weekends when building the upcoming-days tiles. Defaults to true.