Skip to main content

Interface: DeliveryDateProps

Defined in: components/DeliveryDate.tsx:15

Properties

cart

cart: Cart

Defined in: components/DeliveryDate.tsx:17

The cart to use for the delivery date


containerClass?

optional containerClass?: string

Defined in: components/DeliveryDate.tsx:38

The CSS class for the container


formatDateDisplay?

optional formatDateDisplay?: (date) => string

Defined in: components/DeliveryDate.tsx:32

Custom date display formatting function

Parameters

date

string

Returns

string


initialDate?

optional initialDate?: string

Defined in: components/DeliveryDate.tsx:41

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:35

Labels for the component


language?

optional language?: string

Defined in: components/DeliveryDate.tsx:50

Active language/locale (e.g. 'NL'). Sets the lang attribute on the native <input type="date"> so the browser renders its calendar chrome (month name, weekday headers, Today/Clear) in that locale. Resolved from <PropellerProvider> when omitted. The quick-pick tile text is localized separately via labels (day_N / month_N keys).


onDateSelect?

optional onDateSelect?: (date) => void

Defined in: components/DeliveryDate.tsx:29

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:26

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


showUpcomingDays?

optional showUpcomingDays?: number

Defined in: components/DeliveryDate.tsx:20

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


skipWeekends?

optional skipWeekends?: boolean

Defined in: components/DeliveryDate.tsx:23

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