terra vidhal

Pricing Interval

Pricing 2

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
  • 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

More in Pricing

View all
  • Executive Pricing Plan

    Executive Pricing Plan

    20
  • Pricing Section

    Pricing Section

    733
  • Pricing Section 1

    Pricing Section 1

    109
  • Single Pricing Card

    Single Pricing Card

    829
  • Review Stack Pricing

    Review Stack Pricing

    11
  • Toggleable Add-on Pricing

    Toggleable Add-on Pricing

    229
  • Toggle Pricing Cards

    Toggle Pricing Cards

    112
  • Pricing Card

    Pricing Card

    409