amankaushik481

Order Summary

Component

About

A checkout summary card that lists order line items like subtotal, discount, tax and shipping, then a bordered bold total row, for cart and checkout pages.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Order Summary to your project and fits it to your theme.

Code

How Order Summary is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { OrderSummary } from "@/components/ui/order-summary";

export default function OrderSummaryDemo() {
  return (
    <OrderSummary
      lines={[
        { label: "Subtotal", value: "$49.00" },
        { label: "Tax", value: "$3.92" },
      ]}
      total="$52.92"
    />
  );
}

More by amankaushik481

View all
  • Icon Button

    Icon Button

    14
  • Background Boxes

    Background Boxes

    12
  • Chip Filter

    Chip Filter

    8
  • Typing Text

    Typing Text

    7
  • Treemap Chart

    Treemap Chart

    6
  • File Dropzone

    File Dropzone

    5
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2