Skip to content

Pricing Table

Full plan comparison table: four plan columns with price and CTA in the header, grouped feature rows with checks, dashes or values, featured column tinted; horizontally scrollable on small screens.

minimal/section/pricing-table
Open ↗

Source

import { Check, Minus } from "lucide-react";
import { cn } from "@/lib/utils";

export interface PricingTablePlan {
  name: string;
  price: string;
  unit?: string;
  cta: { label: string; href: string };
  featured?: boolean;
}

export interface PricingTableRow {
  label: string;
  /** One value per plan: true = included, false = not included, string = value. */
  values: (boolean | string)[];
}

export interface PricingTableGroup {
  title: string;
  rows: PricingTableRow[];
}

export interface PricingTableProps {
  eyebrow?: string;
  title?: string;
  plans?: PricingTablePlan[];
  groups?: PricingTableGroup[];
  className?: string;
}

const DEFAULT_PLANS: PricingTablePlan[] = [
  { name: "Free", price: "$0", unit: "up to 5 users", cta: { label: "Start free", href: "#free" } },
  { name: "Team", price: "$19", unit: "per user / month", cta: { label: "Start trial", href: "#team" }, featured: true },
  { name: "Business", price: "$39", unit: "per user / month", cta: { label: "Start trial", href: "#business" } },
  { name: "Enterprise", price: "Custom", unit: "annual contract", cta: { label: "Contact sales", href: "#sales" } },
];

const DEFAULT_GROUPS: PricingTableGroup[] = [
  {
    title: "Alerting & on-call",
    rows: [
      { label: "Integrations", values: ["5", "Unlimited", "Unlimited", "Unlimited"] },
      { label: "Phone & SMS notifications", values: [false, true, true, true] },
      { label: "Rotations & schedules", values: ["1", "Unlimited", "Unlimited", "Unlimited"] },
      { label: "Escalation policies", values: [true, true, true, true] },
    ],
  },
  {
    title: "Incident response",
    rows: [
      { label: "Slack & Teams war rooms", values: [true, true, true, true] },
      { label: "Status pages", values: ["1 public", "3", "Unlimited", "Unlimited"] },
      { label: "AI postmortems", values: [false, false, true, true] },
      { label: "Workflows & automations", values: [false, "10", "Unlimited", "Unlimited"] },
    ],
  },
  {
    title: "Security & support",
    rows: [
      { label: "SSO / SAML", values: [false, false, true, true] },
      { label: "SCIM & audit logs", values: [false, false, false, true] },
      { label: "Data residency (EU / US)", values: [false, false, false, true] },
      { label: "Support", values: ["Community", "Email", "Priority", "Dedicated TAM"] },
    ],
  },
];

function Cell({ value }: { value: boolean | string }) {
  if (value === true) return <Check aria-label="Included" className="mx-auto size-4 text-da-accent-fg" />;
  if (value === false) return <Minus aria-label="Not included" className="mx-auto size-4 text-da-muted-fg/60" />;
  return <span>{value}</span>;
}

/** Full feature-comparison table: sticky plan header, grouped rows, check/dash/values; scrolls horizontally on mobile. */
export function PricingTable({
  eyebrow = "Compare plans",
  title = "Find the plan that fits your on-call",
  plans = DEFAULT_PLANS,
  groups = DEFAULT_GROUPS,
  className,
}: PricingTableProps) {
  return (
    <section aria-labelledby="pricing-table-title" className={cn("da-section bg-da-bg text-da-fg", className)}>
      <div className="da-container">
        <div className="max-w-2xl">
          <p className="font-da-mono text-xs text-da-accent-fg">{eyebrow}</p>
          <h2 id="pricing-table-title" className="mt-3 text-[clamp(1.875rem,4vw,2.75rem)] leading-[1.1] font-semibold tracking-da-display text-balance">
            {title}
          </h2>
        </div>
        <div className="mt-12 overflow-x-auto" tabIndex={0} role="region" aria-label="Plan comparison (scrollable)">
          <table className="w-full min-w-[720px] border-collapse text-sm">
            <caption className="sr-only">Features included in each plan</caption>
            <thead>
              <tr>
                <td className="w-[28%]" />
                {plans.map((p) => (
                  <th key={p.name} scope="col" className={cn("px-4 pb-6 text-center align-bottom font-normal", p.featured && "rounded-t-da-lg bg-da-surface-2")}>
                    <span className="flex items-center justify-center gap-2 pt-4 text-[15px] font-medium">
                      {p.name}
                      {p.featured && <span className="rounded-da-pill bg-da-primary px-2 py-0.5 text-[11px] text-da-primary-fg">Popular</span>}
                    </span>
                    <span className="mt-2 block text-2xl font-semibold tracking-tight">{p.price}</span>
                    <span className="block text-[12px] text-da-muted-fg">{p.unit}</span>
                    <a
                      href={p.cta.href}
                      className={cn(
                        "da-focus da-transition mt-4 flex h-8 items-center justify-center rounded-da-md text-[13px] font-medium",
                        p.featured ? "bg-da-primary text-da-primary-fg hover:bg-da-primary/90" : "da-stroke bg-da-surface hover:bg-da-muted",
                      )}
                    >
                      {p.cta.label}
                    </a>
                  </th>
                ))}
              </tr>
            </thead>
            {groups.map((g) => (
              <tbody key={g.title}>
                <tr>
                  <th scope="colgroup" colSpan={plans.length + 1} className="border-b border-da-border pt-8 pb-3 text-left text-[13px] font-medium">
                    {g.title}
                  </th>
                </tr>
                {g.rows.map((r) => (
                  <tr key={r.label} className="border-b border-da-border">
                    <th scope="row" className="py-3 pr-4 text-left font-normal text-da-muted-fg">
                      {r.label}
                    </th>
                    {r.values.map((v, i) => (
                      <td key={i} className={cn("px-4 py-3 text-center", plans[i]?.featured && "bg-da-surface-2")}>
                        <Cell value={v} />
                      </td>
                    ))}
                  </tr>
                ))}
              </tbody>
            ))}
          </table>
        </div>
      </div>
    </section>
  );
}

export default PricingTable;

modules/minimal/section/pricing-table/index.tsx

Props

PropTypeDefaultDescription
eyebrow / titlestring—Header copy.
plans{ name, price, unit?, cta, featured? }[]—Columns.
groups{ title, rows: { label, values }[] }[]—values: boolean | string per plan.
classNamestring—Classes on the section.

Other pricing variants in Minimal

Pricing in other art directions

Pricing Comparison

Full feature matrix: ruled table with plan headers (price + CTA, highlighted plan in yellow), ink group separator rows and check / dash / text values, horizontally scrollable on mobile.

BrutalistPricing

Pricing Single

Single-plan pricing card: giant price on a yellow panel, numbered feature grid on paper, full-width ink CTA, guarantee line and a rotated pink discount sticker.

BrutalistPricing

Pricing Slider

Usage-based pricing calculator: chunky range slider with a square yellow thumb, live per-unit and total price (volume tiers), included-features list and an ink CTA bar.

BrutalistPricing

Pricing Tiers

Three plans glued together in one ruled strip, the highlighted plan pops out in solid yellow with a rotated badge. Monthly/yearly toggle with discount chip, custom-price plan support.

BrutalistPricing

Pricing Credits

Pay-as-you-go pricing: four glass radio cards of recording-hour packs (tags like Popular / Best value) feeding a gradient summary card with price, per-hour cost, inclusions and CTA.

GlassPricing

Pricing Duo

Free vs paid in one glass panel: two plan headers with price and CTA over a shared feature table (checks, dashes, values); the paid column is tinted with a soft gradient and a gradient CTA.

GlassPricing

Pricing Frosted

Three frosted pricing cards with a pill billing toggle; the featured plan gets a gradient frame, gradient badge and gradient CTA and stands slightly taller. Per-seat units and custom pricing supported.

GlassPricing

Pricing Spotlight

Single-plan pricing: a wide glass card split into a gradient price block (plan, big price, CTA, sales link) and a two-column feature list with a money-back guarantee and customer wordmarks.

GlassPricing

Pricing Columns

Three plan columns separated by hairlines (no cards): mono plan name, huge price, note, ruled feature list and a button; the featured plan has an ink button and a signal dot.

Mono CleanPricing

Pricing One

Single-price poster: a gigantic price set in the display face across the left, and on the right a short pitch, a two-column “included” list with en-dashes and an ink CTA; separated by a full-ink rule.

Mono CleanPricing

Pricing Table

Plain typographic comparison table: ink header rule, mono column heads, hairline rows, em-dash for absent features, and the featured column marked with a signal dot.

Mono CleanPricing

Pricing Toggle

Pricing as a ruled list: a text toggle “Monthly / Yearly (−20%)” with an underline on the active option, then one row per plan — name, blurb, price, arrow link — rows invert on hover.

Mono CleanPricing

Pricing Fees

Pay-as-you-go fee sheet: big per-method rates in bordered cells (4-up), then a “no hidden fees” checklist band.

Neo CorporatePricing

Pricing Matrix

Enterprise feature matrix: sticky-looking header row of plans, grouped rows with section headings, checks/dashes/values and a tinted featured column.

Neo CorporatePricing

Pricing Tiers

Three bordered tiers with a monthly/annual segmented toggle; the featured tier has a blue top bar and “Most popular” badge; enterprise shows “Custom”.

Neo CorporatePricing

Pricing Volume

Volume-based fee calculator: stepped slider of monthly payment volume, the blended rate tier highlighted in a tier table, and an estimated monthly fee vs. a typical 2.9% processor.

Neo CorporatePricing

Pricing Compare

Soft comparison table: rounded card, plan names in serif with prices, zebra rows in warm tints, sage check circles and dashes, highlighted featured column.

Organic SoftPricing

Pricing Single

One honest plan: a wide rounded card split into a sage-tinted price side (big serif price, CTA, guarantee) and a two-column “everything included” list.

Organic SoftPricing

Pricing Team

Team-size calculator: a warm range slider (10–500 people) drives a big serif monthly price, annual saving line and a sapling illustration that grows with team size.

Organic SoftPricing

Pricing Tiers

Three rounded plans on cream; the middle one sits on a deep sage card (inverted colors) lifted slightly higher, with a leaf ribbon; checklists use soft tinted checks.

Organic SoftPricing

Pricing Cards

Three rounded plan cards with emoji (Sprout, Bloom, Forest), a pill monthly/yearly toggle, mint tick lists, and the featured plan filled in lavender with a tilted butter “Most loved” sticker.

Soft FlatPricing

Pricing Compare

Rounded comparison table inside a white card: soft zebra rows, round mint check and grey dash badges, and a lavender featured column with rounded head.

Soft FlatPricing

Pricing Duo

Two big plan blocks side by side: a mint “Free” block and a periwinkle “Pro” block with light text, huge rounded prices, round-tick feature lists and contrasting pill CTAs.

Soft FlatPricing

Pricing Team

Team-size price calculator: big round −/+ stepper around an editable number, avatar dots popping in for each person (paid seats ringed), and a butter summary card with the live monthly total.

Soft FlatPricing