About
A loyalty tier ladder with animated points, a progress track between tiers, expandable benefit lists, a filterable reward catalogue with redeem and undo, recent activity and a reset. Rewards gate on the live point balance.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Loyalty Tier Ladder to your project and fits it to your theme.
Code
How Loyalty Tier Ladder 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 {
LoyaltyTierLadder,
type LoyaltyEvent,
type LoyaltyReward,
type LoyaltyTier,
} from "@/components/ui/loyalty-tier-ladder";
const TIERS: LoyaltyTier[] = [
{
id: "member",
name: "Member",
threshold: 0,
benefits: ["Earn 1 point per order", "Birthday bonus", "Member-only pricing"],
},
{
id: "silver",
name: "Silver",
threshold: 1000,
benefits: ["Free standard delivery", "Early sale access", "1.2x points on orders"],
},
{
id: "gold",
name: "Gold",
threshold: 2500,
benefits: ["Free express delivery", "Quarterly gift", "Priority support", "1.5x points"],
},
{
id: "platinum",
name: "Platinum",
threshold: 5000,
benefits: ["Concierge support", "Annual premium gift", "Exclusive collections", "2x points"],
},
];
const REWARDS: LoyaltyReward[] = [
{ id: "shipping", name: "Free express shipping", description: "One order, any size", cost: 250, category: "Shipping" },
{ id: "credit-10", name: "10 credit", description: "Applied at checkout", cost: 600, category: "Credit" },
{ id: "priority", name: "Priority support", description: "Jump the queue for 30 days", cost: 900, category: "Access" },
{ id: "early", name: "Early access drop", description: "Shop new arrivals first", cost: 1200, category: "Access" },
{ id: "gift", name: "Annual gift box", description: "Curated seasonal set", cost: 2500, category: "Gifts" },
{ id: "credit-25", name: "25 credit", description: "Applied at checkout", cost: 1400, category: "Credit" },
];
const HISTORY: LoyaltyEvent[] = [
{ id: "order-4821", label: "Order 4821", points: 210, date: "Nov 18" },
{ id: "referral", label: "Referral bonus", points: 250, date: "Nov 09" },
{ id: "order-4770", label: "Order 4770", points: 160, date: "Oct 30" },
{ id: "review", label: "Product review", points: 40, date: "Oct 22" },
];
export default function LoyaltyTierLadderDemo() {
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">
<LoyaltyTierLadder
initialPoints={1840}
tiers={TIERS}
rewards={REWARDS}
history={HISTORY}
title="Your rewards account"
/>
</main>
);
}








