Calm motion: animations on this site only fade, with no movement
Delivery picker
A day and a time window for delivery, with the fee of each window
Lets a buyer choose when an order comes, at checkout. For a booking with exact start times, use the slot picker.
Basic
Chosen window: none yet
daysis a list of days. Each day has adateasYYYY-MM-DDand a list ofwindows. Each window has anid, astartand anendasHH:MM, afee, and an optionalfull.v-modelis the id of the chosen window.- The days and the windows are two groups of native radio buttons, so the arrow keys move inside each group.
- A window with a fee of 0 says "Free". A full window says "Full", has a dashed edge, and is off. If all the windows of a day are full, the day is off too.
- The first day with room shows first. If
v-modelalready has a window, its day shows. currencyis an ISO 4217 code (defaultUSD), andlocalesets the format of the money and the days.- Change the words with
labelsor a label pack:day,time,free, andfull.
Usage
ts
import { BlessDeliveryPicker } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
days* | BlessDeliveryDay[] | — | |
currency | string | "USD" | |
locale | string | "en" | |
labels | Partial<{ day: string; time: string; free: string; full: string; }> | — | |
modelValue | string | — | the id of the chosen window |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: string | undefined] |