E-commerce
OrderSummary
Cart or order summary with code entry, shipping calculation, and final action button.
Quick Preview
Order Summary
👕
Classic Hoodie (M)
Qty: 1
👟
Running Shoes (42)
Qty: 1
🎒
Canvas Backpack
Qty: 2
Subtotal฿6,560
ShippingFree
Total฿6,560
Installation
npm install lucide-react
// Copy component fromsrc/components/ecommerce/OrderSummary.tsx
Usage
import OrderSummary from '@/components/ecommerce/OrderSummary'// Typically used as the right column in a checkout layout<div className="grid grid-cols-2 gap-8"><CheckoutForm /><OrderSummary /></div>
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | OrderItem[] | - | Line items (uses defaults if omitted) |
className | string | - | Additional CSS classes |