Neue Tools hinzugefügt! Neuheiten entdecken

Startseite/Komponenten/Pricing Table

Pricing Table examples

Ein dreistufiger Preisseil-Bereich mit einem hervorgehobenen empfohlenen Tarif, Funktionslisten und einem monatlichen oder jährlichen Abrechnungs-Toggle.

Ein dreispaltiger Preisseil-Bereich mit einem hervorgehoben empfohlenen Tarif, tarifspezifischen Funktionslisten und einem monatlichen oder jährlichen Abrechnungs-Toggle. Stapelt sich auf Mobilgeräten in der Reihenfolge, in der die Tarife geschrieben sind, zu einer einzigen Spalte.

Eine Variante enthält einen funktionierenden monatlichen und jährlichen Abrechnungs-Toggle, sowohl in React als auch in reinem HTML. Die anderen sind statisches Markup, was die meisten Websites tatsächlich benötigen.

Three-tier pricing table

Starter, Pro, and Enterprise columns with an outlined, badged recommended plan. The recommended plan moves to the top on mobile.

Preview
export default function PricingTable() {
  return (
    <section className="mx-auto max-w-6xl px-4 py-12">
      <div className="mb-10 text-center">
        <h2 className="text-3xl font-bold text-gray-900">Simple pricing</h2>
        <p className="mt-3 text-gray-600">Start free. Upgrade when your team grows.</p>
      </div>

      <div className="grid gap-6 lg:grid-cols-3">
        <div className="relative rounded-xl border border-gray-200 bg-white p-6">
          <h3 className="font-semibold text-gray-900">Starter</h3>
          <p className="mt-1 text-sm text-gray-600">For side projects.</p>
          <p className="mt-4"><span className="text-4xl font-bold text-gray-900">$0</span><span className="text-sm text-gray-600">/month</span></p>
          <ul className="mt-6 space-y-3 text-sm text-gray-700">
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>1 project</span></li>
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Community support</span></li>
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>1 GB storage</span></li>
          </ul>
          <a href="#" className="mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium border border-gray-300 text-gray-900 hover:bg-gray-50">Start free</a>
        </div>

        <div className="relative order-first rounded-xl border-2 border-gray-900 bg-white p-6 lg:order-none">
          <span className="absolute -top-3 left-6 rounded-full bg-gray-900 px-3 py-1 text-xs font-medium text-white">Most popular</span>
          <h3 className="font-semibold text-gray-900">Pro</h3>
          <p className="mt-1 text-sm text-gray-600">For growing teams.</p>
          <p className="mt-4"><span className="text-4xl font-bold text-gray-900">$24</span><span className="text-sm text-gray-600">/month</span></p>
          <ul className="mt-6 space-y-3 text-sm text-gray-700">
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Unlimited projects</span></li>
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Priority support</span></li>
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>100 GB storage</span></li>
          </ul>
          <a href="#" className="mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium bg-gray-900 text-white hover:bg-gray-700">Start trial</a>
        </div>

        <div className="relative rounded-xl border border-gray-200 bg-white p-6">
          <h3 className="font-semibold text-gray-900">Enterprise</h3>
          <p className="mt-1 text-sm text-gray-600">For larger organizations.</p>
          <p className="mt-4"><span className="text-4xl font-bold text-gray-900">Custom</span></p>
          <ul className="mt-6 space-y-3 text-sm text-gray-700">
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>SSO and audit logs</span></li>
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Dedicated support</span></li>
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Custom contracts</span></li>
          </ul>
          <a href="#" className="mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium border border-gray-300 text-gray-900 hover:bg-gray-50">Contact sales</a>
        </div>
      </div>
    </section>
  );
}

Pricing table with monthly and annual toggle

The same three tiers with a billing switch that updates prices in place. Buttons carry aria-pressed so the active period is announced.

Preview
"use client";

import { useState } from "react";

const plans = [
  {
    name: "Starter",
    tagline: "For side projects.",
    monthly: 0,
    annual: 0,
    features: ["1 project", "Community support", "1 GB storage"],
    cta: "Start free",
    featured: false,
  },
  {
    name: "Pro",
    tagline: "For growing teams.",
    monthly: 24,
    annual: 19,
    features: ["Unlimited projects", "Priority support", "100 GB storage"],
    cta: "Start trial",
    featured: true,
  },
  {
    name: "Enterprise",
    tagline: "For larger organizations.",
    monthly: null,
    annual: null,
    features: ["SSO and audit logs", "Dedicated support", "Custom contracts"],
    cta: "Contact sales",
    featured: false,
  },
];

export default function PricingTable() {
  const [annual, setAnnual] = useState(false);

  const tab = "rounded-md px-4 py-1.5 text-sm font-medium ";

  return (
    <section className="mx-auto max-w-6xl px-4 py-12">
      <div className="mb-10 text-center">
        <h2 className="text-3xl font-bold text-gray-900">Simple pricing</h2>
        <p className="mt-3 text-gray-600">Start free. Upgrade when your team grows.</p>

        <div
          className="mt-6 inline-flex rounded-lg border border-gray-200 p-1"
          role="group"
          aria-label="Billing period"
        >
          <button
            type="button"
            onClick={() => setAnnual(false)}
            aria-pressed={!annual}
            className={tab + (!annual ? "bg-gray-900 text-white" : "text-gray-600")}
          >
            Monthly
          </button>
          <button
            type="button"
            onClick={() => setAnnual(true)}
            aria-pressed={annual}
            className={tab + (annual ? "bg-gray-900 text-white" : "text-gray-600")}
          >
            Annual
          </button>
        </div>
      </div>

      <div className="grid gap-6 lg:grid-cols-3">
        {plans.map((plan) => {
          const price = annual ? plan.annual : plan.monthly;

          return (
            <div
              key={plan.name}
              className={
                "relative rounded-xl bg-white p-6 " +
                (plan.featured
                  ? "order-first border-2 border-gray-900 lg:order-none"
                  : "border border-gray-200")
              }
            >
              {plan.featured && (
                <span className="absolute -top-3 left-6 rounded-full bg-gray-900 px-3 py-1 text-xs font-medium text-white">
                  Most popular
                </span>
              )}

              <h3 className="font-semibold text-gray-900">{plan.name}</h3>
              <p className="mt-1 text-sm text-gray-600">{plan.tagline}</p>

              <p className="mt-4">
                <span className="text-4xl font-bold text-gray-900">
                  {price === null ? "Custom" : "$" + price}
                </span>
                {price !== null && <span className="text-sm text-gray-600">/month</span>}
              </p>

              <ul className="mt-6 space-y-3 text-sm text-gray-700">
                {plan.features.map((feature) => (
                  <li key={feature}>{feature}</li>
                ))}
              </ul>

              <a
                href="#"
                className={
                  "mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium " +
                  (plan.featured
                    ? "bg-gray-900 text-white hover:bg-gray-700"
                    : "border border-gray-300 text-gray-900 hover:bg-gray-50")
                }
              >
                {plan.cta}
              </a>
            </div>
          );
        })}
      </div>
    </section>
  );
}

Two-tier pricing table

Free next to paid. Fewer options convert better when the plans are genuinely different rather than incrementally larger.

Preview
export default function TwoTierPricing() {
  return (
    <section className="mx-auto max-w-3xl px-4 py-12">
      <div className="mb-10 text-center">
        <h2 className="text-3xl font-bold text-gray-900">Two plans. No surprises.</h2>
        <p className="mt-3 text-gray-600">Try it free, then pay only when you need more.</p>
      </div>

      <div className="grid gap-6 md:grid-cols-2">
        <div className="relative rounded-xl border border-gray-200 bg-white p-6">
          <h3 className="font-semibold text-gray-900">Starter</h3>
          <p className="mt-1 text-sm text-gray-600">For side projects.</p>
          <p className="mt-4"><span className="text-4xl font-bold text-gray-900">$0</span><span className="text-sm text-gray-600">/month</span></p>
          <ul className="mt-6 space-y-3 text-sm text-gray-700">
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>1 project</span></li>
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Community support</span></li>
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>1 GB storage</span></li>
          </ul>
          <a href="#" className="mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium border border-gray-300 text-gray-900 hover:bg-gray-50">Start free</a>
        </div>

        <div className="relative order-first rounded-xl border-2 border-gray-900 bg-white p-6 lg:order-none">
          <span className="absolute -top-3 left-6 rounded-full bg-gray-900 px-3 py-1 text-xs font-medium text-white">Most popular</span>
          <h3 className="font-semibold text-gray-900">Pro</h3>
          <p className="mt-1 text-sm text-gray-600">For growing teams.</p>
          <p className="mt-4"><span className="text-4xl font-bold text-gray-900">$24</span><span className="text-sm text-gray-600">/month</span></p>
          <ul className="mt-6 space-y-3 text-sm text-gray-700">
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Unlimited projects</span></li>
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>Priority support</span></li>
            <li className="flex gap-2"><svg className="h-4 w-4 shrink-0 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span>100 GB storage</span></li>
          </ul>
          <a href="#" className="mt-8 block rounded-md px-4 py-2 text-center text-sm font-medium bg-gray-900 text-white hover:bg-gray-700">Start trial</a>
        </div>
      </div>
    </section>
  );
}

Pricing comparison table

A feature-by-feature table with checks and dashes. Use it when plans share most features and differ in limits. Scrolls sideways on narrow screens.

Preview
export default function PricingComparison() {
  return (
    <section className="mx-auto max-w-4xl px-4 py-12">
      <h2 className="text-center text-3xl font-bold text-gray-900">Compare plans</h2>

      <div className="mt-8 overflow-x-auto rounded-xl border border-gray-200">
        <table className="w-full min-w-[32rem] text-left text-sm">
          <thead className="bg-gray-50 text-gray-900">
            <tr>
              <th scope="col" className="px-4 py-3 font-semibold">Feature</th>
              <th scope="col" className="px-4 py-3 text-center font-semibold">Starter</th>
              <th scope="col" className="px-4 py-3 text-center font-semibold">Pro</th>
              <th scope="col" className="px-4 py-3 text-center font-semibold">Enterprise</th>
            </tr>
          </thead>
          <tbody className="divide-y divide-gray-200 text-gray-700">
            <tr>
              <th scope="row" className="px-4 py-3 font-medium text-gray-900">Projects</th>
              <td className="px-4 py-3 text-center">1</td>
              <td className="px-4 py-3 text-center">Unlimited</td>
              <td className="px-4 py-3 text-center">Unlimited</td>
            </tr>
            <tr>
              <th scope="row" className="px-4 py-3 font-medium text-gray-900">Storage</th>
              <td className="px-4 py-3 text-center">1 GB</td>
              <td className="px-4 py-3 text-center">100 GB</td>
              <td className="px-4 py-3 text-center">Custom</td>
            </tr>
            <tr>
              <th scope="row" className="px-4 py-3 font-medium text-gray-900">Community support</th>
              <td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
              <td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
              <td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
            </tr>
            <tr>
              <th scope="row" className="px-4 py-3 font-medium text-gray-900">Priority support</th>
              <td className="px-4 py-3 text-center"><span aria-hidden="true" className="text-gray-400">-</span><span className="sr-only">Not included</span></td>
              <td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
              <td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
            </tr>
            <tr>
              <th scope="row" className="px-4 py-3 font-medium text-gray-900">SSO and audit logs</th>
              <td className="px-4 py-3 text-center"><span aria-hidden="true" className="text-gray-400">-</span><span className="sr-only">Not included</span></td>
              <td className="px-4 py-3 text-center"><span aria-hidden="true" className="text-gray-400">-</span><span className="sr-only">Not included</span></td>
              <td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
            </tr>
            <tr>
              <th scope="row" className="px-4 py-3 font-medium text-gray-900">Custom contracts</th>
              <td className="px-4 py-3 text-center"><span aria-hidden="true" className="text-gray-400">-</span><span className="sr-only">Not included</span></td>
              <td className="px-4 py-3 text-center"><span aria-hidden="true" className="text-gray-400">-</span><span className="sr-only">Not included</span></td>
              <td className="px-4 py-3 text-center"><svg className="mx-auto h-5 w-5 text-gray-900" fill="none" stroke="currentColor" strokeWidth="1.5" viewBox="0 0 24 24" aria-hidden="true"><path strokeLinecap="round" strokeLinejoin="round" d="m4.5 12.75 6 6 9-13.5" /></svg><span className="sr-only">Included</span></td>
            </tr>
          </tbody>
        </table>
      </div>
    </section>
  );
}

What is a Pricing Table?

Eine Preistabelle stellt die Tarife eines Produkts nebeneinander dar, damit Besucher sie auf einen Blick vergleichen können. Es handelt sich um eine Vergleichsoberfläche im Gewand eines Marketingbereichs: Die visuelle Aufgabe besteht darin, sauber auszusehen, und die eigentliche Aufgabe besteht darin, die Unterschiede zwischen den Tarifen schnell genug lesbar zu machen, dass sich jemand für einen entscheidet, anstatt zu gehen, um darüber nachzudenken.

Die Struktur ist nahezu universell, weil sie funktioniert. Jede Spalte enthält einen Tarifnamen, einen kurzen Satz darüber, für wen er gedacht ist, einen Preis, eine Liste der enthaltenen Leistungen und eine Aktion. Ein empfohlener Tarif wird meistens hervorgehoben, was wie ein Design-Gag klingt, aber echte Arbeit leistet – bei drei ähnlichen Optionen ohne Anleitung greifen die Leute häufig standardmäßig zur mittleren oder zu gar keiner, und eine explizite Empfehlung nimmt ihnen die Entscheidung ab.

Der Abrechnungs-Toggle ist der einzige wirklich interaktive Teil und existiert, weil die jährliche Abrechnung in der Regel rabattiert ist. Es ist Standard, den rabattierten monatlichen Äquivalenzbetrag bei jährlicher Abrechnung anzuzeigen, aber es lohnt sich, im Label klarzustellen, welcher Betrag wann berechnet wird, da Webseiten an dieser Stelle das Vertrauen verlieren, wenn eine Diskrepanz zwischen dem angezeigten Betrag und dem tatsächlichen Abbuchungsbetrag entsteht.

Wo diese Abschnitte am häufigsten versagen, ist am Breakpoint. Drei Spalten mit Funktionslisten werden auf einem Smartphone zu drei übereinandergestapelten Blöcken, und der empfohlene Tarif – für das Desktop-Auge sorgfältig in der Mitte positioniert – landet zwischen den anderen beiden unter einem Fold, den die meisten mobilen Besucher niemals scrollen. Die Tarife so anzuordnen, dass der empfohlene Tarif auf Mobilgeräten zuerst erscheint, ist eine Ein-Klassen-Änderung, die leicht zu übersehen und ärgerlich ist, wenn man sie vergisst.

Anatomy

Sektionsüberschrift
Die Überschrift und die unterstützende Zeile über den Spalten. Halten Sie die unterstützende Zeile auf einen Satz darüber, für wen die Tarife gedacht sind, und machen Sie daraus keinen Verkaufsparagrafen.
Abrechnungs-Toggle
Zwei Buttons mit aria-pressed zur Anzeige, welcher Zeitraum aktiv ist. Buttons statt eines Switches, da die Wahl zwischen zwei benannten Optionen statt zwischen An und Aus getroffen wird.
Tarifkarte
Eine Spalte pro Tarif, die Name, Slogan, Preis, Funktionsliste und Aktion enthält. Alle Karten teilen sich denselben internen Abstand, damit Preise und Buttons spaltenübergreifend ausgerichtet sind.
Featured-Badge
Das absolut positionierte Label auf dem empfohlenen Tarif, das über die Oberkante der Karte hinausragt, sodass es eher als angehängt denn als eingeschlossen wahrgenommen wird.
Funktionsliste
Ein ul pro Tarif. Halten Sie die Anzahl der Elemente über die Tarife hinweg möglichst gleich, sonst enden die Spalten auf unterschiedlichen Höhen und die Buttons hören auf, sich auszurichten.
Tarif-Aktion
Der Button oder Link am Fuß jeder Karte. Der empfohlene Tarif erhält die gefüllte Variante und die anderen Konturen, sodass das visuelle Gewicht zum beabsichtigten Pfad passt.

How to Use

  1. 1

    Kopieren Sie die Version, die Sie benötigen

    Nehmen Sie die React-Version, wenn Sie den funktionierenden Abrechnungs-Toggle wünschen, oder die HTML-Version für eine statische Tabelle nur für Monatsabrechnungen.

  2. 2

    Bearbeiten Sie das Array der Tarife

    Ersetzen Sie die Namen, Slogans, Preise und Features. Das Featured-Flag steuert, welche Spalte den Rahmen, das Badge und den gefüllten Button erhält – setzen Sie es bei genau einem Tarif.

  3. 3

    Legen Sie Ihren Jahresrabatt fest

    Das Jahresfeld ist der monatliche Äquivalentpreis beijährlicher Abrechnung, nicht die Jahressumme. Formulieren Sie das Abrechnungslabel so, dass klar ist, welcher Betrag berechnet wird.

  4. 4

    Korrigieren Sie die Reihenfolge für Mobilgeräte

    Füge order-first lg:order-none zur hervorgehobenen Karte hinzu, damit der empfohlene Tarif auf Smartphones ganz oben und auf dem Desktop wieder in der Mitte erscheint.

  5. 5

    Aktionen anbinden

    Verweise mit dem Link jedes Tarifs auf deinen Registrierungs-Flow, indem du die Tarifkennung im Query-String oder Pfad übergibst, damit die Auswahl erhalten bleibt, anstatt sie erneut abzufragen.

Features

Funktionierender Abrechnungs-Toggle

Monats- und Jahrespreise wechseln ohne Neuladen der Seite, mit aria-pressed auf jedem Button, damit der aktive Zeitraum angesagt statt nur angezeigt wird.

Datenbasierte Spalten

Der gesamte Abschnitt wird aus einem einzigen plans-Array gerendert, sodass das Hinzufügen oder Entfernen einer Stufe eine Datenänderung und keine Markup-Änderung ist.

Darstellung des hervorgehobenen Tarifs

Ein einzelner Boolean steuert den kräftigeren Rahmen, das Badge und den Button mit Volltonfarbe, wodurch die Gewichtung konsistent bleibt statt pro Element manuell angepasst zu werden.

Über Spalten hinweg ausgerichtet

Gemeinsame interne Abstände halten Preise, Listen und Buttons auf denselben horizontalen Linien, was eine Tabelle überschaubar statt nur ordentlich macht.

Behandlung benutzerdefinierter Preise

Ein Null-Preis wird als „Custom“ mit unterdrücktem Monatssuffix gerendert, sodass eine Enterprise-Stufe kein eigenes separates Markup benötigt.

Common Uses

SaaS-Preisseiten

Das standardmäßige Layout mit drei Stufen für ein Abonnementprodukt, bei dem ein kostenloser oder Starter-Tarif das untere Ende verankert und eine Vertriebs-Stufe ganz oben steht.

Service- und Agentur-Pakete

Präsentation von Paketen mit festem Leistungsumfang, bei denen die Unterschiede in den Liefergegenständen statt in Nutzungslimits liegen, wobei das mittlere Paket als beabsichtigter Standard dient.

Mitgliedschafts- und Kursstufen

Darstellung von Zugriffsebenen für eine Community, einen Kurs oder einen Newsletter, bei denen die jährliche Abrechnung einen sinnvollen Rabatt bietet.

Vergleich eines kostenpflichtigen Tarifs mit einer kostenlosen Version

Eine zweispaltige Version, die die kostenlose Stufe neben die kostenpflichtige stellt und das Upgrade-Argument durch Kontrast statt durch Behauptung untermauert.

Accessibility

Customization

Props

PropTypeDefaultDescription
plans *Plan[]-Die darzustellenden Tarife. Jedes enthält einen Namen, einen Slogan, einen Monats- und Jahrespreis, eine Funktionsliste sowie ein Featured-Flag, das die hervorgehobene Darstellung steuert.
defaultAnnualbooleanfalseDer Abrechnungszeitraum, mit dem der Toggle startet. Der Start im Jahresmodus zeigt eine niedrigere Hauptzahl, was manche Teams bevorzugen und andere für irreführend halten – wählen Sie dies bewusst.

Why Use These Pricing Tables?

Der Abrechnungs-Toggle ist ein echter, funktionierender Zustand, kein statischer Screenshot. Die meisten Copy-Paste-Preisabschnitte lassen ihn entweder weg oder belassen ihn als nicht funktionale Dekoration, die erst verdrahtet werden muss, bevor die Seite live gehen kann.

Die Spalten werden aus einem Daten-Array gerendert, sodass eine Preisänderung eine einzige Bearbeitung ist und keine drei parallelen Bearbeitungen in nahezu identischen Markup-Blöcken – genau so entstehen inkonsistente Preistabellen nach ein paar Runden von Aktualisierungen.

Das Problem mit der mobilen Reihenfolge wird lieber dokumentiert, als es dem Zufall zu überlassen. Es ist der mit Abstand häufigste Mangel in Preistabellen, und die Lösung besteht aus genau einer Klasse.

Tips

Frequently Asked Questions