A responsive pricing cards component with customizable tiers, features, and dark mode support. Features - Responsive grid layout (1 column on mobile, 2 columns on desktop) - Dark mode support - Customizable pricing tiers - Highlighted tier support - Animated hover effects - Feature list with included/excluded states - Customizable CTA buttons with link or click handler - Gradient backgrounds for highlighted tiers - Flexible styling through className props
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Pricing Cards to your project and fits it to your theme.
Code
How Pricing Cards is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { PricingCards } from "@/components/blocks/pricing-cards";
const tiers = [
{
name: "SELF",
price: 299,
description: "For small teams and growing businesses",
features: [
{ name: "Up to 20 team members", included: true },
{ name: "Advanced analytics", included: true },
{ name: "24/7 email support", included: true },
{ name: "API access", included: true, highlight: true },
{ name: "Custom integrations", included: false },
{ name: "Enterprise features", included: false },
],
cta: {
text: "Get started",
href: "/signup",
}
},
{
name: "TEAM",
price: 999,
interval: "monthly",
description: "For large organizations and enterprises",
highlight: true,
features: [
{ name: "Unlimited team members", included: true },
{ name: "Advanced analytics", included: true },
{ name: "24/7 priority support", included: true },
{ name: "Unlimited API access", included: true, highlight: true },
{ name: "Custom integrations", included: true },
{ name: "Enterprise features", included: true },
],
cta: {
text: "Contact sales",
onClick: () => console.log("Contact sales clicked"),
}
},
];
function PricingPage() {
return (
<PricingCards
tiers={tiers}
className="gap-6"
containerClassName="py-12"
/>
);
}
export { PricingPage }















