terra vidhal

Return Refund Desk

Component

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>
  );
}

Dependencies

More by terra vidhal

View all
  • Project Timeline

    Project Timeline

    30
  • Kanban Board

    Kanban Board

    20
  • Gravity Stars Background

    Gravity Stars Background

    20
  • Booking Calendar

    Booking Calendar

    18
  • Notification Center

    Notification Center

    16
  • Audio Waveform

    Audio Waveform

    16
  • Kpi Counter

    Kpi Counter

    16
  • Topographic Lines

    Topographic Lines

    16

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.