terra vidhal

Pricing Interval

Pricing 1

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

Dependencies

More by terra vidhal

View all
  • Gravity Stars Background

    Gravity Stars Background

    13
  • Booking Calendar

    Booking Calendar

    10
  • Topographic Lines

    Topographic Lines

    8
  • Spotlight Card

    Spotlight Card

    8
  • Audio Waveform

    Audio Waveform

    7
  • Command Palette

    Command Palette

    6
  • Kpi Counter

    Kpi Counter

    6
  • Notification Center

    Notification Center

    5

More in Pricing

View all
  • Review Stack Pricing

    Review Stack Pricing

    8
  • Toggle Pricing Cards

    Toggle Pricing Cards

    106
  • Pricing Section

    Pricing Section

    720
  • Pricing Section

    Pricing Section

    216
  • Pricing Card

    Pricing Card

    585
  • pricing section

    pricing section

    187
  • Pricing Section 1

    Pricing Section 1

    106
  • Toggleable Add-on Pricing

    Toggleable Add-on Pricing

    212