Order Confirmation

An order success page with order details and shipping info.

Card
Badge
Button
Separator

Preview

Order Confirmed!

Thank you for your purchase. Your order has been placed successfully.

#ORD-2024-1234

Order Details

Wireless Headphones Pro $129.99
USB-C Charging Cable $19.99
Leather Carrying Case $49.99
Subtotal $199.97
Shipping $9.99
Tax $17.50
Total $227.46

Shipping Address

John Doe, 123 Main St, New York, NY 10001

Payment Method

Card ending in 4242

Code

<div class="w-full max-w-lg">
    <BbCard>
        <BbCardHeader class="text-center space-y-4">
            <div class="flex h-16 w-16 items-center justify-center rounded-full bg-emerald-100 text-emerald-600 mx-auto">
                <!-- circle-check icon SVG -->
            </div>
            <div class="space-y-2">
                <BbCardTitle class="text-2xl">Order Confirmed!</BbCardTitle>
                <BbCardDescription>
                    Thank you for your purchase. Your order has been placed successfully.
                </BbCardDescription>
            </div>
            <div class="flex justify-center">
                <BbBadge Variant="BadgeVariant.Secondary" class="font-mono">#ORD-2024-1234</BbBadge>
            </div>
        </BbCardHeader>
        <BbCardContent class="space-y-4">
            <BbSeparator />
            <div class="space-y-3">
                <h2 class="text-sm font-semibold">Order Details</h2>
                <div class="space-y-2 text-sm">
                    <div class="flex justify-between">
                        <span class="text-muted-foreground">Wireless Headphones Pro</span>
                        <span>$129.99</span>
                    </div>
                    <div class="flex justify-between">
                        <span class="text-muted-foreground">USB-C Charging Cable</span>
                        <span>$19.99</span>
                    </div>
                    <div class="flex justify-between">
                        <span class="text-muted-foreground">Leather Carrying Case</span>
                        <span>$49.99</span>
                    </div>
                </div>
                <BbSeparator />
                <div class="space-y-2 text-sm">
                    <div class="flex justify-between">
                        <span class="text-muted-foreground">Subtotal</span>
                        <span>$199.97</span>
                    </div>
                    <div class="flex justify-between">
                        <span class="text-muted-foreground">Shipping</span>
                        <span>$9.99</span>
                    </div>
                    <div class="flex justify-between">
                        <span class="text-muted-foreground">Tax</span>
                        <span>$17.50</span>
                    </div>
                </div>
                <BbSeparator />
                <div class="flex justify-between text-sm font-bold">
                    <span>Total</span>
                    <span>$227.46</span>
                </div>
            </div>
            <BbSeparator />
            <div class="space-y-2 text-sm">
                <h2 class="text-sm font-semibold">Shipping Address</h2>
                <p class="text-muted-foreground">John Doe, 123 Main St, New York, NY 10001</p>
            </div>
            <div class="space-y-2 text-sm">
                <h2 class="text-sm font-semibold">Payment Method</h2>
                <p class="text-muted-foreground">Card ending in 4242</p>
            </div>
        </BbCardContent>
        <BbCardFooter class="flex gap-2">
            <BbButton class="flex-1">Track Order</BbButton>
            <BbButton Variant="ButtonVariant.Outline" class="flex-1">Continue Shopping</BbButton>
        </BbCardFooter>
    </BbCard>
</div>