Efferd

Pricing Card

Pricing 532

About

A sleek, component-based Card system with glass effects, pricing layouts, and flexible sections like header, body, and list items. Perfect for modern SaaS pricing tables, feature lists, or product showcases with consistent, stylish UI.

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

Code

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

Usage.tsx

'use client';

import { cn } from '@/lib/utils';
import { Button } from '@/components/ui/button';
import * as PricingCard from '@/components/ui/pricing-card';
import {
	CheckCircle2,
	XCircleIcon,
	Users,
} from 'lucide-react';


function Default() {
	const handleClick = (plan: string) => {
		alert(`Selected ${plan} plan!`);
	};

	const features = [
		'Up to 3 projects',
		'Basic templates',
		'Community support',
		'1GB storage',
	];

	const lockedFeatures = [
		'Unlimited projects',
		'Premium templates',
		'Priority support',
	];

	return (
		<PricingCard.Card>
			<PricingCard.Header>
				<PricingCard.Plan>
					<PricingCard.PlanName>
						<Users aria-hidden="true" />
						<span className="text-muted-foreground">Starter</span>
					</PricingCard.PlanName>
					<PricingCard.Badge>For Individuals</PricingCard.Badge>
				</PricingCard.Plan>
				<PricingCard.Price>
					<PricingCard.MainPrice>$10</PricingCard.MainPrice>
					<PricingCard.Period>/ month</PricingCard.Period>
					<PricingCard.OriginalPrice className="ml-auto">
						$12
					</PricingCard.OriginalPrice>
				</PricingCard.Price>
				<Button
					className={cn(
						'w-full font-semibold text-white',
						'bg-gradient-to-b from-orange-500 to-orange-600 shadow-[0_10px_25px_rgba(255,115,0,0.3)]',
					)}
					onClick={() => handleClick('Starter')}
				>
					Get Started
				</Button>
			</PricingCard.Header>
			<PricingCard.Body>
				<PricingCard.List>
					{features.map((item) => (
						<PricingCard.ListItem>
							<span className="mt-0.5">
								<CheckCircle2
									className="h-4 w-4 text-green-500"
									aria-hidden="true"
								/>
							</span>
							<span>{item}</span>
						</PricingCard.ListItem>
					))}
				</PricingCard.List>
				<PricingCard.Separator>Pro features</PricingCard.Separator>
				<PricingCard.List>
					{lockedFeatures.map((item) => (
						<PricingCard.ListItem className="opacity-75">
							<span className="mt-0.5">
								<XCircleIcon
									className="text-destructive h-4 w-4"
									aria-hidden="true"
								/>
							</span>
							<span>{item}</span>
						</PricingCard.ListItem>
					))}
				</PricingCard.List>
			</PricingCard.Body>
		</PricingCard.Card>
	);
}


export default function Page() {
	return (
		<main
			className={cn(
				'relative min-h-svh w-full overflow-hidden',
				'flex items-center justify-center p-4',
			)}
		>
    
      {/* Subtle dotted grid */}
			<div
				aria-hidden="true"
				className="pointer-events-none absolute inset-0"
				style={{
					backgroundImage:
						'radial-gradient(rgba(255,255,255,0.08) 0.8px, transparent 0.8px)',
					backgroundSize: '14px 14px',
					maskImage:
						'radial-gradient( circle at 50% 10%, rgba(0,0,0,1), rgba(0,0,0,0.2) 40%, rgba(0,0,0,0) 70% )',
				}}
			/>

			{/* Radial spotlight */}
			<div
				aria-hidden="true"
				className={cn(
					'pointer-events-none absolute -top-1/2 left-1/2 h-[120vmin] w-[120vmin] -translate-x-1/2 rounded-full',
					'bg-[radial-gradient(ellipse_at_center,--theme(--color-foreground/.1),transparent_50%)]',
					'blur-[30px]',
				)}
			/>
			<Default />
		</main>
	);
}

More by Efferd

View all
  • Testimonials Columns

    Testimonials Columns

    7.1K
  • Zoom Parallax

    Zoom Parallax

    5.2K
  • Dotted Surface

    Dotted Surface

    3.5K
  • Footer Section

    Footer Section

    2.7K
  • Grid Feature Cards

    Grid Feature Cards

    1.9K
  • Logo Cloud 2

    Logo Cloud 2

    1.6K
  • Header 3

    Header 3

    1.5K
  • Logo Cloud 3

    Logo Cloud 3

    1.5K

More in Pricing

View all
  • Pricing Section

    Pricing Section

    570
  • Pricing Section

    Pricing Section

    171
  • Pricing Cards

    Pricing Cards

    16
  • Colorful-Pricing

    Colorful-Pricing

    84
  • pricing section

    pricing section

    156
  • Single Pricing Card

    Single Pricing Card

    792
  • Login Card

    Login Card

    5
  • Boxly Pricing-1

    Boxly Pricing-1

    86