delivery-slot

Delivery Slot

Delivery card with standard and express tabs, a calendar of bookable days, a row of time windows with booked-out ones named, the chosen slot with its price, and a confirm button that asks for a day and a window before standard delivery.

Parts

PartFileDoes
DeliverySlotDeliverySlot.vueLets the shopper pick standard or express delivery, a day and a delivery window.

Styling

All of Delivery Slot’s styles live in delivery-slot.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@internationalized/date
@lucide/vue
reka-ui

Built from

API reference

DeliverySlot.vue

Lets the shopper pick standard or express delivery, a day and a delivery window.

Props 28

PropTypeDefault
windows*DeliveryWindow[]—
titlestring'Delivery'
descriptionstring—
standardLabelstring'Standard'
expressLabelstring'Express'
expressNoticeDeliveryNotice—
dayLabelstring'Day'
dayHintstring—
defaultPlaceholderDateValue—
minValueDateValue—
maxValueDateValue—
isDateUnavailable((date: DateValue) => boolean)—
localestring'en'
weekStartsOn0 | 1 | 2 | 3 | 4 | 5 | 60
windowLabelstring'Time window'
windowAriaLabel((label: string) => string)`Between ${label}`
fullLabelstring'Fully booked'
dayRequiredLabelstring'Choose a day'
windowRequiredLabelstring'Choose a time window'
pricePriceType—
freeLabelstring'Free'
slotLabel((day: DateValue | undefined, window: DeliveryWindow | undefined) => string)—
confirmLabelstring'Confirm delivery slot'
surface'raised' | 'bare''raised'
classClassValue—
speedstring'standard'
dayDateValue—
windowstring—

Events 4

EventPayload
confirmslot: { speed: string; day?: DateValue | undefined; window?: string | undefined; }
update:speedvalue: string
update:dayvalue: DateValue | undefined
update:windowvalue: string | undefined

Data attributes 1

Data attributeValues
data-surface'raised' | 'bare'

Recipe delivery-slot-price 1 group

Recipe hint 1 group

Delivery Slot