Tally UI

OrderDetail

Full-page order view with line items, totals, and slots for customer, payment, and footer content

Import

import { OrderDetail } from '@tallyui/components';

Usage

<OrderDetail
  orderNumber="#1042"
  status="completed"
  lineItems={[{ name: 'Espresso', quantity: 2, total: '$9.00' }]}
  subtotal="$9.00"
  tax="$0.72"
  total="$9.72"
/>

Renders a scrollable detail view for a single order, including a status badge, itemised line items, and totals breakdown. Use the slot props to inject customer info, payment details, or action buttons.

Props

PropTypeDefaultDescription
orderNumberstringrequiredDisplay label for the order
statusOrderStatusrequiredStatus value passed to OrderStatusBadge
lineItemsOrderDetailLineItem[]requiredArray of line items
subtotalstringrequiredFormatted subtotal
taxstringrequiredFormatted tax amount
totalstringrequiredFormatted order total
customerSlotReactNode—Content shown below the header
paymentSlotReactNode—Payment info below the totals
footerSlotReactNode—Actions or notes at the bottom
classNamestring—Override container styles

OrderDetailLineItem

interface OrderDetailLineItem {
  name: string;
  quantity: number;
  total: string;
}

Live demo