Skip to content
  • No data uploaded
  • Instant results

Tailwind CSS Pricing Table for React — Glassmorphism

A production-ready glassmorphism pricing table: a three-tier pricing section with a monthly/yearly billing toggle, a highlighted “most popular” plan and feature checklists. Pick your brand color, toggle dark mode and corner radius — the live preview and the React code update instantly in your browser.

Live component editor

Library
Framework
Style
Theme
Corner radius
Live preview
import { useState } from 'react';

export default function PricingTable() {
  const [yearly, setYearly] = useState(false);

  return (
    <section className="py-16 px-6">
      <div className="max-w-6xl mx-auto">
        <div className="text-center mb-10">
          <h2 className="text-3xl font-bold text-slate-900">Simple, transparent pricing</h2>
          <p className="mt-2 text-slate-500">Start free. Upgrade when you need more.</p>
          <button type="button" className="inline-flex items-center justify-center px-4 py-2.5 text-sm font-semibold rounded-lg border transition-colors border-white/80 bg-white/40 text-slate-800 hover:bg-white/70 focus:outline-none focus:ring-2 focus:ring-[#4f46e5] focus:ring-offset-2 focus:ring-offset-white mt-6" onClick={() => setYearly((v) => !v)}>
            <span hidden={yearly}>Billed monthly · switch to yearly (save 20%)</span>
            <span hidden={!yearly}>Billed yearly · switch to monthly</span>
          </button>
        </div>
        <div className="grid grid-cols-1 md:grid-cols-3 gap-6">
          <div>
            <div className="h-full p-8 flex flex-col bg-white/60 backdrop-blur-xl border border-white/60 shadow-2xl rounded-xl">
              <div className="flex items-center justify-between">
                <h3 className="text-lg font-semibold text-slate-900">Starter</h3>
              </div>
              <p className="mt-1 text-sm text-slate-500">For side projects.</p>
              <p className="mt-6">
                <span className="text-4xl font-bold text-slate-900"><span hidden={yearly}>$0</span><span hidden={!yearly}>$0</span></span>
                <span className="text-sm text-slate-500">/month</span>
              </p>
              <ul className="list-none mt-6 mb-8 flex flex-col gap-3 flex-1">
                <li className="flex items-start gap-2 text-sm text-slate-700"><svg className="shrink-0 mt-1 text-[#4f46e5]" width="16" height="16" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fillRule="evenodd" d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z" clipRule="evenodd"/></svg>1 project</li>
                <li className="flex items-start gap-2 text-sm text-slate-700"><svg className="shrink-0 mt-1 text-[#4f46e5]" width="16" height="16" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fillRule="evenodd" d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z" clipRule="evenodd"/></svg>Community support</li>
                <li className="flex items-start gap-2 text-sm text-slate-700"><svg className="shrink-0 mt-1 text-[#4f46e5]" width="16" height="16" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fillRule="evenodd" d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z" clipRule="evenodd"/></svg>Basic analytics</li>
              </ul>
              <a href="#" className="inline-flex items-center justify-center px-4 py-2.5 text-sm font-semibold rounded-lg border transition-colors border-white/80 bg-white/40 text-slate-800 hover:bg-white/70 focus:outline-none focus:ring-2 focus:ring-[#4f46e5] focus:ring-offset-2 focus:ring-offset-white w-full">Get started</a>
            </div>
          </div>
          <div>
            <div className="h-full p-8 flex flex-col bg-white/60 backdrop-blur-xl border border-white/60 shadow-2xl rounded-xl ring-2 ring-[#4f46e5]">
              <div className="flex items-center justify-between">
                <h3 className="text-lg font-semibold text-slate-900">Pro</h3>
                <span className="inline-flex items-center px-2.5 py-0.5 text-xs font-semibold rounded-full bg-[#4f46e5]/10 text-[#4f46e5]">Most popular</span>
              </div>
              <p className="mt-1 text-sm text-slate-500">For growing teams.</p>
              <p className="mt-6">
                <span className="text-4xl font-bold text-slate-900"><span hidden={yearly}>$29</span><span hidden={!yearly}>$24</span></span>
                <span className="text-sm text-slate-500">/month</span>
              </p>
              <ul className="list-none mt-6 mb-8 flex flex-col gap-3 flex-1">
                <li className="flex items-start gap-2 text-sm text-slate-700"><svg className="shrink-0 mt-1 text-[#4f46e5]" width="16" height="16" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fillRule="evenodd" d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z" clipRule="evenodd"/></svg>Unlimited projects</li>
                <li className="flex items-start gap-2 text-sm text-slate-700"><svg className="shrink-0 mt-1 text-[#4f46e5]" width="16" height="16" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fillRule="evenodd" d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z" clipRule="evenodd"/></svg>Priority support</li>
                <li className="flex items-start gap-2 text-sm text-slate-700"><svg className="shrink-0 mt-1 text-[#4f46e5]" width="16" height="16" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fillRule="evenodd" d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z" clipRule="evenodd"/></svg>Advanced analytics</li>
                <li className="flex items-start gap-2 text-sm text-slate-700"><svg className="shrink-0 mt-1 text-[#4f46e5]" width="16" height="16" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fillRule="evenodd" d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z" clipRule="evenodd"/></svg>Custom domains</li>
              </ul>
              <a href="#" className="inline-flex items-center justify-center px-4 py-2.5 text-sm font-semibold rounded-lg bg-[#4f46e5] hover:bg-[#433cc3] text-white shadow-sm transition-colors focus:outline-none focus:ring-2 focus:ring-[#4f46e5] focus:ring-offset-2 focus:ring-offset-white w-full">Start free trial</a>
            </div>
          </div>
          <div>
            <div className="h-full p-8 flex flex-col bg-white/60 backdrop-blur-xl border border-white/60 shadow-2xl rounded-xl">
              <div className="flex items-center justify-between">
                <h3 className="text-lg font-semibold text-slate-900">Enterprise</h3>
              </div>
              <p className="mt-1 text-sm text-slate-500">For large organisations.</p>
              <p className="mt-6">
                <span className="text-4xl font-bold text-slate-900"><span hidden={yearly}>$99</span><span hidden={!yearly}>$79</span></span>
                <span className="text-sm text-slate-500">/month</span>
              </p>
              <ul className="list-none mt-6 mb-8 flex flex-col gap-3 flex-1">
                <li className="flex items-start gap-2 text-sm text-slate-700"><svg className="shrink-0 mt-1 text-[#4f46e5]" width="16" height="16" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fillRule="evenodd" d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z" clipRule="evenodd"/></svg>SSO & SAML</li>
                <li className="flex items-start gap-2 text-sm text-slate-700"><svg className="shrink-0 mt-1 text-[#4f46e5]" width="16" height="16" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fillRule="evenodd" d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z" clipRule="evenodd"/></svg>Dedicated manager</li>
                <li className="flex items-start gap-2 text-sm text-slate-700"><svg className="shrink-0 mt-1 text-[#4f46e5]" width="16" height="16" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fillRule="evenodd" d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z" clipRule="evenodd"/></svg>Audit logs</li>
                <li className="flex items-start gap-2 text-sm text-slate-700"><svg className="shrink-0 mt-1 text-[#4f46e5]" width="16" height="16" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"><path fillRule="evenodd" d="M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z" clipRule="evenodd"/></svg>99.99% SLA</li>
              </ul>
              <a href="#" className="inline-flex items-center justify-center px-4 py-2.5 text-sm font-semibold rounded-lg border transition-colors border-white/80 bg-white/40 text-slate-800 hover:bg-white/70 focus:outline-none focus:ring-2 focus:ring-[#4f46e5] focus:ring-offset-2 focus:ring-offset-white w-full">Start free trial</a>
            </div>
          </div>
        </div>
      </div>
    </section>
  );
}
All components →

Free Tailwind CSS Pricing Table for React — Glassmorphism by pGento

Install Tailwind CSS for React

Create a React project with Vite, then add Tailwind CSS v3:

npm create vite@latest my-app -- --template react
cd my-app
npm install
npm install -D tailwindcss@3 postcss autoprefixer
npx tailwindcss init -p

Set content: ['./index.html', './src/**/*.{js,jsx}'] in tailwind.config.js, and add to src/index.css:

@tailwind base;
@tailwind components;
@tailwind utilities;

The brand color is applied with arbitrary values such as bg-[#4f46e5], so no theme configuration is needed.

Use the pricing table in React

// App.jsx
import PricingTable from './PricingTable';

export default function App() {
  return <PricingTable />;
}

Accessibility & customization

The billing switch is a real <button> with aria-pressed semantics handled by state, prices are plain text (no images), and decorative check icons are hidden with aria-hidden="true".

Every color, radius and dark-mode choice is baked into plain utility classes, so the copied code has no runtime dependency on this site. The glass style relies on backdrop-filter, supported in all current browsers; place it over a colorful background for the best effect.

Compatibility

ItemDetails
CSS frameworkTailwind CSS v3.4+
LibraryReact 18+ (function component)
Interactive stateyearly
Dark modeYes — toggle in the editor
StyleGlassmorphism (backdrop blur)

Frequently asked questions

How do I install this Tailwind pricing table in React?
Create a React project, install Tailwind CSS as shown in the installation section, then paste the generated code.
Can I change the color of the pricing table?
Yes. Use the brand color picker or type any hex code — the preview and code update instantly, and the color is written directly into the classes you copy.
Does the pricing table support dark mode?
Yes. Toggle “Dark mode” in the editor to generate a dark palette version of the same component.
Is the pricing table accessible?
The billing switch is a real <button> with aria-pressed semantics handled by state, prices are plain text (no images), and decorative check icons are hidden with aria-hidden="true".
Is this component free for commercial use?
Yes. The generated code is yours to use in personal and commercial projects without attribution.
Tailwind CSS Pricing Table for React — Glassmorphism

Embed this tool on your site

Paste this code into any web page. It stays free, fast and ad-free inside your site.

Print or save as PDF

Prints just this tool and its result. Choose “Save as PDF” as the printer to get a file. Branding is stored only in this browser.