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
  • Chip Filter

    Chip Filter

    7
  • Icon Button

    Icon Button

    4
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2
  • Product Card

    Product Card

  • Floating Label Input

    Floating Label Input

  • Link Preview

    Link Preview

  • Relative Time

    Relative Time