About
Three pricing plan cards with a Monthly / Yearly switch, sliding prices and a highlighted popular plan. Shows yearly totals, a Custom price option and included or excluded features.
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
// This is a file with a demo for your component
// That's what users will see in the preview
// Create new files in this directory to add more demos
"use client";
import * as React from "react";
import { Component } from "@/components/ui/pricing-table";
export default function DemoOne() {
const [choice, setChoice] = React.useState("");
return (
<div className="flex w-full flex-col items-center gap-10 bg-background px-4 py-16 text-foreground sm:py-20">
<div className="max-w-2xl text-center">
<p className="text-sm font-medium text-primary">Pricing</p>
<h2 className="mt-2 text-3xl font-semibold tracking-tight sm:text-4xl">Simple plans that grow with you</h2>
<p className="mt-3 text-base leading-7 text-muted-foreground">Start free, upgrade when you are ready, and cancel any time.</p>
</div>
<Component onSelect={(plan, billing) => setChoice(plan.name + " (" + billing + ")")} />
<p className="h-5 text-sm text-muted-foreground" role="status">
{choice ? "You chose: " + choice : ""}
</p>
</div>
);
}
















