Mark Yo

Pricing Table

Pricing 24

About

A pricing section with a monthly/yearly billing toggle, animated digit-rolling prices, and plan cards with feature checklists and a highlighted popular plan.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Pricing Table to your project and fits it to your theme.

Code

How Pricing Table is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { PricingTable, type PricingPlan } from "@/components/ui/pricing-table";

const PLANS: PricingPlan[] = [
  {
    id: "hobby",
    name: "Hobby",
    description: "For side projects.",
    price: { monthly: 0, yearly: 0 },
    cta: "Start free",
    features: [
      { label: "3 projects" },
      { label: "Community support" },
      { label: "Custom domains", included: false },
      { label: "Team roles", included: false },
    ],
  },
  {
    id: "pro",
    name: "Pro",
    description: "For growing teams.",
    price: { monthly: 29, yearly: 23 },
    popular: true,
    cta: "Upgrade to Pro",
    features: [
      { label: "Unlimited projects" },
      { label: "Priority support" },
      { label: "Custom domains" },
      { label: "Team roles", included: false },
    ],
  },
  {
    id: "scale",
    name: "Scale",
    description: "For larger orgs.",
    price: { monthly: 99, yearly: 79 },
    cta: "Contact sales",
    features: [
      { label: "Unlimited projects" },
      { label: "Dedicated support" },
      { label: "Custom domains" },
      { label: "SSO and team roles" },
    ],
  },
];

export default function PricingTableDemo() {
  return (
    <div className="w-full max-w-[38rem] px-1 pt-1">
      <PricingTable plans={PLANS} compact />
    </div>
  );
}

Dependencies

More by Mark Yo

View all
  • Loader

    Loader

    65
  • Bento Grid

    Bento Grid

    8
  • Expandable Tabs

    Expandable Tabs

    3
  • Image Gallery

    Image Gallery

    3
  • CTA Section

    CTA Section

    3
  • Wallet Card

    Wallet Card

    1
  • Shared Layout Background

    Shared Layout Background

    1
  • Not Found Spotlight

    Not Found Spotlight

    1

More in Pricing

View all
  • Pricing Section

    Pricing Section

    715
  • Toggle Pricing Cards

    Toggle Pricing Cards

    101
  • Pricing Card

    Pricing Card

    582
  • pricing section

    pricing section

    183
  • Pricing Section

    Pricing Section

    216
  • Review Stack Pricing

    Review Stack Pricing

    6
  • Single Plan Pricing Card

    Single Plan Pricing Card

    29
  • Toggleable Add-on Pricing

    Toggleable Add-on Pricing

    211