recent-orders

Recent Orders

Order history card: a table of orders with date, items, status and total, a per-order menu to view, track, get the invoice or start a return, pagination, and a note when there are no orders yet.

Parts

PartFileDoes
RecentOrdersRecentOrders.vueLists recent orders with status and total, and actions such as track or return.

Styling

All of Recent Orders’s styles live in recent-orders.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@lucide/vue
reka-ui

Built from

API reference

RecentOrders.vue

Lists recent orders with status and total, and actions such as track or return.

Props 25

PropTypeDefault
orders*RecentOrder[]—
totalnumber—
pageSizenumber5
titlestring'Recent orders'
descriptionstring'Everything you ordered in the last three months.'
downloadLabelstring'Download all invoices'
emptyLabelstring'You have no orders yet.'
orderLabelstring'Order'
dateLabelstring'Date'
itemsLabelstring'Items'
statusLabelstring'Status'
totalLabelstring'Total'
actionsLabelstring'Actions'
viewLabelstring'View order'
trackLabelstring'Track parcel'
invoiceLabelstring'Invoice (PDF)'
returnLabelstring'Start a return'
statusLabelsRecord<OrderStatus, string>{ processing: 'Processing', shipped: 'Shipped', delivered: 'Delivered', returned: 'Returned', }
moreLabel((count: number) => string)`+${count} more`
rangeLabel((from: number, to: number, total: number) => string)`Showing ${from}–${to} of ${total} ${total === 1 ? 'order' : 'orders'}`
orderActionsLabel((order: RecentOrder) => string)`Actions for order ${order.number}`
surface'raised' | 'bare''raised'
localestring—
classClassValue—
pagenumber1

Events 6

EventPayload
update:pagevalue: number
downloadAll—
vieworder: RecentOrder
trackorder: RecentOrder
invoiceorder: RecentOrder
returnorder: RecentOrder

Data attributes 1

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

Recipe line-title 1 group

Recipe hint 1 group

Recent Orders