About
A pricing table with an animated monthly and yearly switcher, per-plan prices that slide between intervals, staggered feature lists, a highlighted plan, savings badges and a reassurance row. The billing control is a keyboard radio group.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Pricing Interval to your project and fits it to your theme.
Code
How Pricing Interval 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 { PricingInterval, type PricingPlan } from "@/components/ui/pricing-interval";
const PLANS: PricingPlan[] = [
{
id: "starter",
name: "Starter",
description: "For a small team finding its rhythm.",
monthly: 19,
yearly: 15,
features: [
"Up to 3 editors",
"10 projects",
"Basic analytics",
"Community support",
],
ctaLabel: "Start with Starter",
},
{
id: "growth",
name: "Growth",
description: "For teams shipping every week.",
monthly: 49,
yearly: 39,
features: [
"Unlimited editors",
"Unlimited projects",
"Advanced analytics",
"Priority support",
"Custom roles",
],
highlighted: true,
ctaLabel: "Choose Growth",
},
{
id: "scale",
name: "Scale",
description: "For organisations with heavier needs.",
monthly: 99,
yearly: 79,
features: [
"Everything in Growth",
"Single sign-on",
"Audit log",
"Dedicated onboarding",
"99.9% uptime target",
],
ctaLabel: "Talk to sales",
},
];
export default function PricingIntervalDemo() {
return (
<main className="flex min-h-screen w-full items-center justify-center bg-background px-6 py-12">
<PricingInterval
plans={PLANS}
title="Plans that grow with the team"
description="Switch between monthly and yearly billing. Change or cancel whenever you need."
defaultInterval="yearly"
yearlyDiscount={20}
footnote="Every plan starts with a 14-day trial. No card required, cancel anytime."
/>
</main>
);
}
















