Order

OrderCard

Order summary card showing order number, status badge, item thumbnails, and total.

OrderCard

Displays an order in a compact card format with header (order number, date, status badge), stacked item thumbnails, and a footer with total and "View Details" action.

Preview
#ORD-2024-123412/18/2024
Shipped
Wireless Headphones
Smart Watch Pro
2 items

Usage

<COrderCard :order="order" />

Custom Actions

<COrderCard :order="order">
  <template #actions>
    <UButton size="xs" color="primary">Track Order</UButton>
  </template>
</COrderCard>

Props

PropTypeDefaultDescription
orderOrderrequiredOrder data from @commercejs/types
uiPartial<{...}>Per-instance theme overrides

Slots

SlotScoped PropsDescription
items{ items }Custom item thumbnails area
actionsCustom footer actions

Status Colors

The status badge automatically maps to semantic colors:

StatusColor
pendingwarning
processinginfo
shippedprimary
deliveredsuccess
cancellederror
refundedneutral
returnedneutral