Back to components

Checkout

Order Summary

A read-only order review with line items, subtotal, shipping, tax, and total.

money
review
totals

Preview

Order summary

  • Aurora lamp1

    Aurora Lamp

    $129.00
Subtotal$129.00
Total$139.32

Installation

Run the shadcn CLI. Dependencies and the shared lib block come with it.

npx shadcn add order-summary

Usage

Import
import { OrderSummary } from "@/components/lumo/order-summary"
Example
<OrderSummary
  lines={lines}
  subtotal={subtotal}
  shipping={{ amount: 0, currency: "USD" }}
  tax={tax}
  total={total}
/>

Props

PropTypeDefaultRequired
linesCartLine[]-
Required
subtotalMoney-
Required
shippingMoney-
taxMoney-
totalMoney-
titlestring"Order summary"
localestring-

All props accept standard HTML attributes unless otherwise specified.

Dependencies

Lumo blocks

  • lib

Own every line

Lumo blocks copy into your repo. No runtime dependency, no lock-in. Edit the code to fit your product.