Orders and account
Order history, returns, wishlist and loyalty points.
- 5 blocks
- 2 free
- 3 Pro
- Light and dark
- Responsive
Unlock 67 Pro blocks and every template
Every preview is open. With Pro you get the code, copy-paste ready, with every update for good.
Order history
FreePast orders with status, total and the next thing to do.
order-history.tsx
"use client";
import { ChevronRight, Package, RotateCcw, Search, Truck } from "lucide-react";
import * as React from "react";
import { Button, Input, Segmented, StatusBadge } from "@waveinno/ui";
type Status = "delivered" | "shipped" | "processing" | "returned";
const ORDERS: { id: string; date: string; items: string[]; total: number; status: Status; pay: string }[] = [
{ id: "BZ-24817", date: "2 Oct 2026", items: ["Cotton panjabi", "Attar, 12 ml"], total: 3300, status: "shipped", pay: "bKash" },
{ id: "BZ-24790", date: "28 Sep 2026", items: ["Smart watch S2"], total: 6900, status: "processing", pay: "Cash on delivery" },
{ id: "BZ-24512", date: "14 Sep 2026", items: ["Jamdani saree", "Silver cufflinks", "Gift wrap"], total: 10950, status: "delivered", pay: "Card" },
{ id: "BZ-24203", date: "30 Aug 2026", items: ["Wireless buds"], total: 2900, status: "returned", pay: "Nagad" },
{ id: "BZ-23988", date: "11 Aug 2026", items: ["Linen shirt", "Leather wallet"], total: 3400, status: "delivered", pay: "bKash" },
];
const STATUS: Record<Status, { label: string; tone: "success" | "info" | "warning" | "neutral" }> = {
delivered: { label: "Delivered", tone: "success" },
shipped: { label: "On the way", tone: "info" },
processing: { label: "Packing", tone: "warning" },
returned: { label: "Returned", tone: "neutral" },
};
const taka = (n: number) => `৳${n.toLocaleString("en-IN")}`;
/** "My orders": filter by state, find an order, and the next thing to do on each. */
export default function OrderHistory() {
const [tab, setTab] = React.useState("all");
const [q, setQ] = React.useState("");
const shown = ORDERS.filter(
(o) => (tab === "all" || (tab === "open" ? o.status === "shipped" || o.status === "processing" : o.status === tab)) && `${o.id} ${o.items.join(" ")}`.toLowerCase().includes(q.toLowerCase()),
);
return (
<section className="mx-auto max-w-4xl px-4 py-12 sm:px-6">
<div className="flex flex-wrap items-end justify-between gap-4">
<div>
<h2 className="disp text-[28px] font-bold leading-[1.15] tracking-[-0.025em] text-text">My orders</h2>
<p className="text-[14px] text-muted">{ORDERS.length} orders since August</p>
</div>
<div className="w-full sm:w-64">
<Input value={q} onChange={(e) => setQ(e.target.value)} placeholder="Order number or item" leading={<Search />} aria-label="Find an order" />
</div>
</div>
<Segmented
ariaLabel="Show"
className="mt-5"
value={tab}
onChange={setTab}
options={[
{ value: "all", label: "All" },
{ value: "open", label: "In progress" },
{ value: "delivered", label: "Delivered" },
{ value: "returned", label: "Returned" },
]}
/>
<ul className="mt-5 space-y-3">
{shown.map((o) => (
<li key={o.id} className="rounded-[18px] border border-border bg-raised p-4 shadow-[var(--lit)] sm:p-5">
<div className="flex flex-wrap items-center gap-x-4 gap-y-2">
<span className="grid size-11 shrink-0 place-items-center rounded-[12px] bg-primary-subtle text-primary">
<Package className="size-5" />
</span>
<div className="min-w-0 flex-1">
<p className="flex flex-wrap items-center gap-2 text-[14.5px] font-semibold text-text">
{o.id} <StatusBadge label={STATUS[o.status].label} tone={STATUS[o.status].tone} />
</p>
<p className="truncate text-[13px] text-muted">
{o.date} · {o.items.join(", ")} · {o.pay}
</p>
</div>
<p className="num text-[15px] font-semibold text-text">{taka(o.total)}</p>
</div>
<div className="mt-3 flex flex-wrap gap-2 border-t border-border pt-3">
{o.status === "shipped" ? (
<Button size="sm" variant="primary">
<Truck /> Track
</Button>
) : null}
{o.status === "delivered" ? (
<>
<Button size="sm">Buy again</Button>
<Button size="sm" variant="ghost">
<RotateCcw /> Return an item
</Button>
</>
) : null}
{o.status === "processing" ? (
<Button size="sm" variant="ghost">
Cancel order
</Button>
) : null}
<Button size="sm" variant="link" className="ml-auto">
Details <ChevronRight />
</Button>
</div>
</li>
))}
{!shown.length ? <li className="rounded-[18px] border border-dashed border-border p-10 text-center text-[14px] text-muted">No orders match.</li> : null}
</ul>
</section>
);
}Wishlist
FreeSaved items, price drops, and a move to the cart.
wishlist.tsx
"use client";
import { Gem, Headphones, Heart, Shirt, ShoppingBag, TrendingDown, Watch, X } from "lucide-react";
import * as React from "react";
import { Button, toast } from "@waveinno/ui";
const SAVED = [
{ id: "1", name: "Jamdani saree, indigo", price: 8900, was: 9800, hue: 230, icon: <Gem />, stock: "In stock" },
{ id: "2", name: "Smart watch S2", price: 6900, hue: 265, icon: <Watch />, stock: "Only 3 left" },
{ id: "3", name: "Noise-cancelling buds", price: 3900, was: 4300, hue: 195, icon: <Headphones />, stock: "In stock" },
{ id: "4", name: "Linen shirt, sage", price: 1950, hue: 150, icon: <Shirt />, stock: "Back on 12 Oct" },
];
const taka = (n: number) => `৳${n.toLocaleString("en-IN")}`;
/** Saved items: price drops called out, stock shown, one click to the cart. */
export default function Wishlist() {
const [items, setItems] = React.useState(SAVED);
return (
<section className="mx-auto max-w-6xl px-4 py-12 sm:px-6">
<div className="flex flex-wrap items-end justify-between gap-3">
<div>
<h2 className="disp flex items-center gap-2 text-[28px] font-bold leading-[1.15] tracking-[-0.025em] text-text">
<Heart className="size-6 fill-rose-500 text-rose-500" /> Saved for later
</h2>
<p className="text-[14px] text-muted">{items.length} items · we email you when a price drops</p>
</div>
<Button
variant="primary"
disabled={!items.length}
onClick={() => {
toast.success("Everything in stock is in your cart");
}}
>
<ShoppingBag /> Add all to cart
</Button>
</div>
<div className="mt-8 grid grid-cols-2 gap-4 sm:gap-5 lg:grid-cols-4">
{items.map((p) => (
<article key={p.id} className="group overflow-hidden rounded-[20px] border border-border bg-raised shadow-[var(--lit)]">
<div
className="relative grid aspect-square place-items-center text-white"
style={{ background: `radial-gradient(80% 70% at 30% 20%, hsl(${p.hue} 90% 72% / .55), transparent 70%), linear-gradient(160deg, hsl(${p.hue} 60% 94%), hsl(${p.hue + 30} 45% 84%))` }}
>
<span className="[&_svg]:size-14">{p.icon}</span>
<button
type="button"
aria-label={`Remove ${p.name}`}
onClick={() => setItems((l) => l.filter((x) => x.id !== p.id))}
className="absolute right-3 top-3 grid size-8 cursor-pointer place-items-center rounded-full bg-white/85 text-[#1a113e] opacity-0 transition-opacity group-hover:opacity-100 focus-visible:opacity-100"
>
<X className="size-4" />
</button>
{p.was ? (
<span className="absolute left-3 top-3 inline-flex items-center gap-1 rounded-full bg-success px-2 py-0.5 text-[11.5px] font-semibold text-white">
<TrendingDown className="size-3" /> {taka(p.was - p.price)} less
</span>
) : null}
</div>
<div className="p-4">
<h3 className="truncate text-[14px] font-semibold text-text">{p.name}</h3>
<p className="mt-0.5 flex items-baseline gap-2">
<span className="num text-[15px] font-semibold text-text">{taka(p.price)}</span>
{p.was ? <span className="num text-[12.5px] text-muted line-through">{taka(p.was)}</span> : null}
</p>
<p className={`mt-1 text-[12.5px] ${p.stock.startsWith("Only") ? "text-warning" : p.stock.startsWith("Back") ? "text-muted" : "text-success"}`}>{p.stock}</p>
<Button size="sm" className="mt-3 w-full" disabled={p.stock.startsWith("Back")} onClick={() => toast.success("Moved to your cart", { description: p.name })}>
{p.stock.startsWith("Back") ? "Notify me" : "Move to cart"}
</Button>
</div>
</article>
))}
</div>
{!items.length ? <p className="mt-8 rounded-[18px] border border-dashed border-border p-10 text-center text-[14px] text-muted">Nothing saved yet. Tap the heart on anything you like.</p> : null}
</section>
);
}What was bought, where it is, and a return in three steps.
Points that count up, a ring to the next tier, rewards to redeem.
Account overview
ProOrders, wallet, points, addresses and saved bKash in one place.