WRAPCODERS

Minimal Pricing Plan

Pricing

About

Minimal 3-tier SaaS pricing block with floating header boxes, feature icons, billing switch, and standard shadcn tokens.

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

Code

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

Usage.tsx

import { useState, useEffect } from "react";
import MinimalPricingPlan, { type PricingTier, type BillingInterval } from "@/components/ui/minimal-pricing-plan";
import {
  Sun,
  Moon,
  Rocket,
  Handshake,
  Globe,
  Scan,
  Sliders,
  TrendingUp,
  Workflow,
  Target,
} from "lucide-react";

export default function MinimalPricingPlanDemo() {
  const [isDark, setIsDark] = useState<boolean>(() => {
    if (typeof window !== "undefined") {
      const params = new URLSearchParams(window.location.search);
      const themeParam = params.get("theme");
      if (themeParam === "dark") return true;
      if (themeParam === "light") return false;
      return document.documentElement.classList.contains("dark");
    }
    return false;
  });

  const [billingInterval, setBillingInterval] = useState<BillingInterval>("monthly");

  useEffect(() => {
    if (typeof document !== "undefined") {
      if (isDark) {
        document.documentElement.classList.add("dark");
      } else {
        document.documentElement.classList.remove("dark");
      }
    }
  }, [isDark]);

  const toggleTheme = () => {
    setIsDark((prev) => !prev);
  };

  const pricingTiers: PricingTier[] = [
    {
      id: "accelerator",
      name: "Accelerator",
      quote: "Ideal for small teams aiming for steady expansion.",
      icon: Rocket,
      price: 2999,
      yearlyPrice: 2499,
      period: "/month",
      yearlyPeriod: "/month",
      features: [
        { text: "Customized Sales Strategy", icon: Globe },
        { text: "Lead Generation Framework", icon: Scan },
        { text: "Sales Process Audit", icon: Sliders },
        { text: "Monthly Performance Review", icon: TrendingUp },
        { text: "CRM Integration & Automation", icon: Workflow },
        { text: "Intensive Sales Training Program", icon: Target },
      ],
      cta: {
        label: "Get Started",
        variant: "outline",
      },
    },
    {
      id: "growth",
      name: "Growth",
      popular: true,
      quote: "Ideal for small teams aiming for steady expansion.",
      icon: Rocket,
      price: 2999,
      yearlyPrice: 2499,
      period: "/month",
      yearlyPeriod: "/month",
      features: [
        { text: "Customized Sales Strategy", icon: Globe },
        { text: "Lead Generation Framework", icon: Scan },
        { text: "Sales Process Audit", icon: Sliders },
        { text: "Monthly Performance Review", icon: TrendingUp },
        { text: "CRM Integration & Automation", icon: Workflow },
        { text: "Intensive Sales Training Program", icon: Target },
      ],
      cta: {
        label: "Get Started",
        variant: "solid",
      },
    },
    {
      id: "enterprise",
      name: "Enterprise",
      quote: "Ideal for small teams aiming for steady expansion.",
      icon: Handshake,
      price: 2999,
      yearlyPrice: 2499,
      period: "/month",
      yearlyPeriod: "/month",
      features: [
        { text: "Customized Sales Strategy", icon: Globe },
        { text: "Lead Generation Framework", icon: Scan },
        { text: "Sales Process Audit", icon: Sliders },
        { text: "Monthly Performance Review", icon: TrendingUp },
        { text: "CRM Integration & Automation", icon: Workflow },
        { text: "Intensive Sales Training Program", icon: Target },
      ],
      cta: {
        label: "Get Started",
        variant: "outline",
      },
    },
  ];

  return (
    <div className="relative min-h-screen w-full bg-background text-foreground transition-colors duration-200">
      {/* Sleek Theme Switcher Header */}
      <header className="sticky top-0 z-30 w-full border-b border-border/40 bg-background/80 backdrop-blur-md">
        <div className="mx-auto flex max-w-6xl items-center justify-between px-4 py-3 sm:px-6 lg:px-8">
          <div className="flex items-center gap-2">
            <span className="text-xs font-medium tracking-wide text-muted-foreground uppercase font-mono">
              21st.dev / minimal-pricing-plan
            </span>
          </div>

          <button
            type="button"
            onClick={toggleTheme}
            className="inline-flex h-8 items-center gap-1.5 rounded-full border border-border bg-muted/50 px-3 text-xs font-medium text-foreground transition-colors hover:bg-muted"
            aria-label={`Switch to ${isDark ? "light" : "dark"} mode`}
          >
            {isDark ? (
              <>
                <Sun className="h-3.5 w-3.5 text-amber-400" />
                <span>Light</span>
              </>
            ) : (
              <>
                <Moon className="h-3.5 w-3.5 text-muted-foreground" />
                <span>Dark</span>
              </>
            )}
          </button>
        </div>
      </header>

      {/* Main Pricing Section */}
      <main className="w-full">
        <MinimalPricingPlan
          eyebrow="Our Plans"
          headline={{
            mutedText: "Transparent",
            boldText: "Pricing",
          }}
          subtitle="We understand the critical role a seamless digital storefront plays in driving success, which is why our service is meticulously crafted."
          tiers={pricingTiers}
          billingInterval={billingInterval}
          onBillingIntervalChange={(interval) => setBillingInterval(interval)}
          showBillingToggle={false}
        />
      </main>
    </div>
  );
}

Dependencies

More by WRAPCODERS

View all
  • Metric Trend Chart

    Metric Trend Chart

    31
  • Real Estate 3D Hero

    Real Estate 3D Hero

    23
  • Interactive 3D Hero Header

    Interactive 3D Hero Header

    2
  • AI SaaS Workflow Hero

    AI SaaS Workflow Hero

  • Portfolio Projects Showcase

    Portfolio Projects Showcase

  • App Integration Celestial Hero

    App Integration Celestial Hero

  • Minimal Isometric Cloud Hero

    Minimal Isometric Cloud Hero

  • Admin Dashboard Cards

    Admin Dashboard Cards

More in Pricing

View all
  • Pricing Section

    Pricing Section

    691
  • Colorful-Pricing

    Colorful-Pricing

    93
  • Pricing Section

    Pricing Section

    201
  • Pricing Card

    Pricing Card

    391
  • pricing section

    pricing section

    175
  • RuixenPricing05

    RuixenPricing05

    117
  • Single Pricing Card

    Single Pricing Card

    818
  • Pricing Cards

    Pricing Cards

    33