About
A guided return desk with item selection, per-item reasons and condition, refund method, animated total, a review step, a generated return reference and a delivery timeline. Includes validation, undo and keyboard-friendly native controls.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Return Refund Desk to your project and fits it to your theme.
Code
How Return Refund Desk is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
/**
* PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
*/
import {
ReturnRefundDesk,
type RefundMethod,
type ReturnItem,
type ReturnReason,
} from "@/components/ui/return-refund-desk";
const ITEMS: ReturnItem[] = [
{ id: "shell", name: "Trail shell jacket", variant: "Moss · Size M", price: 168 },
{ id: "socks", name: "Merino crew socks", variant: "Charcoal · 2 pairs", price: 34 },
{ id: "duffel", name: "Everyday duffel", variant: "Sand · 32 L", price: 119 },
{ id: "bottle", name: "Insulated bottle", variant: "Limited colourway", price: 42, eligible: false },
];
const REASONS: ReturnReason[] = [
{ id: "size", label: "Wrong size or fit" },
{ id: "damaged", label: "Arrived damaged", noteRequired: true },
{ id: "not-needed", label: "No longer needed" },
{ id: "different", label: "Not as described" },
{ id: "quality", label: "Quality did not meet expectations" },
];
const METHODS: RefundMethod[] = [
{
id: "original",
label: "Original payment",
detail: "Back to the card used for the order",
eta: "3–5 business days",
},
{
id: "credit",
label: "Store credit",
detail: "Added to your account with a 5% bonus",
eta: "Within minutes",
},
];
export default function ReturnRefundDeskDemo() {
return (
<main className="flex min-h-screen w-full items-start justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
<ReturnRefundDesk
orderId="ORD-2841"
placedOn="12 Nov"
items={ITEMS}
reasons={REASONS}
methods={METHODS}
title="Return part of your order"
/>
</main>
);
}








