Skip to main content

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?

optional containerClass?: string

Defined in: components/DeliveryDate.tsx:37

The CSS class for the container


formatDateDisplay?

optional formatDateDisplay?: (date) => string

Defined in: components/DeliveryDate.tsx:31

Custom date display formatting function

Parameters

date

string

Returns

string


initialDate?

optional initialDate?: string

Defined in: components/DeliveryDate.tsx:40

Pre-selected date from cart (e.g. cart.postageData.requestDate: "2026-04-17T00:00:00.000Z")


labels?

optional labels?: Record<string, string>

Defined in: components/DeliveryDate.tsx:34

Labels for the component


onDateSelect?

optional onDateSelect?: (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?

optional showDatePicker?: boolean

Defined in: components/DeliveryDate.tsx:25

Show an "Other date..." tile that opens a date picker. Defaults to true.


showUpcomingDays?

optional showUpcomingDays?: number

Defined in: components/DeliveryDate.tsx:19

Number of upcoming days to offer as quick-pick tiles. Defaults to 3.


skipWeekends?

optional skipWeekends?: boolean

Defined in: components/DeliveryDate.tsx:22

Skip weekends when building the upcoming-days tiles. Defaults to true.