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
customerSlotReactNodeContent shown below the header
paymentSlotReactNodePayment info below the totals
footerSlotReactNodeActions or notes at the bottom
classNamestringOverride container styles

OrderDetailLineItem

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

Live demo

On this page