Pricing Usage
Seat-based pricing calculator: range slider for responders, four volume tiers with the active one highlighted, monthly/yearly toggle and a live estimated total panel with inclusions and CTA.
minimal/section/pricing-usageSource
"use client";
import { useId, useState } from "react";
import { Check } from "lucide-react";
import { cn } from "@/lib/utils";
export interface PricingUsageTier {
/** Up to N seats (inclusive). Use Infinity for the last tier. */
upTo: number;
perSeat: number;
}
export interface PricingUsageProps {
eyebrow?: string;
title?: string;
description?: string;
tiers?: PricingUsageTier[];
min?: number;
max?: number;
defaultSeats?: number;
currency?: string;
included?: string[];
cta?: { label: string; href: string };
className?: string;
}
const DEFAULT_TIERS: PricingUsageTier[] = [
{ upTo: 10, perSeat: 21 },
{ upTo: 50, perSeat: 18 },
{ upTo: 150, perSeat: 15 },
{ upTo: Infinity, perSeat: 12 },
];
/** Seat-based price calculator: range slider, volume tiers highlighted, live monthly/yearly total. */
export function PricingUsage({
eyebrow = "Pricing",
title = "Pay per responder. Everyone else is free.",
description = "Stakeholders, viewers and status-page subscribers never count as seats. Volume discounts apply automatically.",
tiers = DEFAULT_TIERS,
min = 1,
max = 250,
defaultSeats = 24,
currency = "$",
included = ["Unlimited alerts & integrations", "Phone, SMS & push", "3 status pages", "AI postmortems", "SSO on 50+ seats"],
cta = { label: "Start 14-day trial", href: "#signup" },
className,
}: PricingUsageProps) {
const [seats, setSeats] = useState(defaultSeats);
const [yearly, setYearly] = useState(true);
const id = useId();
const tierIndex = tiers.findIndex((t) => seats <= t.upTo);
const tier = tiers[tierIndex] ?? tiers[tiers.length - 1]!;
const monthly = seats * tier.perSeat * (yearly ? 0.8 : 1);
const fmt = (n: number) => `${currency}${Math.round(n).toLocaleString("en-US")}`;
const pct = ((seats - min) / (max - min)) * 100;
return (
<section aria-labelledby={`${id}-title`} className={cn("da-section bg-da-bg text-da-fg", className)}>
<div className="da-container">
<div className="mx-auto max-w-2xl text-center">
<p className="font-da-mono text-xs text-da-accent-fg">{eyebrow}</p>
<h2 id={`${id}-title`} className="mt-3 text-[clamp(1.875rem,4vw,2.75rem)] leading-[1.1] font-semibold tracking-da-display text-balance">
{title}
</h2>
<p className="mt-4 text-[17px] text-da-muted-fg">{description}</p>
</div>
<div className="da-stroke mx-auto mt-12 grid max-w-4xl overflow-hidden rounded-da-lg bg-da-surface text-da-surface-fg shadow-da-md md:grid-cols-[1.4fr_1fr]">
<div className="p-6 sm:p-8">
<div className="flex items-center justify-between gap-4">
<label htmlFor={`${id}-seats`} className="text-sm font-medium">
On-call responders
</label>
<output htmlFor={`${id}-seats`} className="font-da-mono text-2xl font-medium tabular-nums">
{seats}
</output>
</div>
<input
id={`${id}-seats`}
type="range"
min={min}
max={max}
value={seats}
onChange={(e) => setSeats(Number(e.target.value))}
className="da-focus mt-4 h-1.5 w-full cursor-pointer appearance-none rounded-full [&::-moz-range-thumb]:size-4 [&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:border-2 [&::-moz-range-thumb]:border-da-primary [&::-moz-range-thumb]:bg-da-surface [&::-webkit-slider-thumb]:size-4 [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:border-2 [&::-webkit-slider-thumb]:border-da-primary [&::-webkit-slider-thumb]:bg-da-surface [&::-webkit-slider-thumb]:shadow-da-sm"
style={{ background: `linear-gradient(to right, var(--da-primary) ${pct}%, var(--da-muted) ${pct}%)` }}
/>
<ul className="mt-6 grid grid-cols-2 gap-2 sm:grid-cols-4" aria-label="Volume tiers">
{tiers.map((t, i) => {
const from = i === 0 ? min : (tiers[i - 1]?.upTo ?? 0) + 1;
const active = i === tierIndex;
return (
<li
key={i}
aria-current={active ? "true" : undefined}
className={cn(
"da-transition rounded-da-md border px-3 py-2 text-[12px]",
active ? "border-da-primary bg-da-accent text-da-accent-fg" : "border-da-border text-da-muted-fg",
)}
>
<span className="block font-da-mono">{t.upTo === Infinity ? `${from}+` : `${from}–${t.upTo}`}</span>
<span className="block font-medium">
{currency}
{t.perSeat}/seat
</span>
</li>
);
})}
</ul>
<div className="mt-6 inline-flex rounded-da-md bg-da-muted p-0.5 text-[13px]" role="group" aria-label="Billing period">
{[
{ v: false, l: "Monthly" },
{ v: true, l: "Yearly −20%" },
].map((o) => (
<button
key={o.l}
type="button"
aria-pressed={yearly === o.v}
onClick={() => setYearly(o.v)}
className={cn(
"da-focus da-transition rounded-[5px] px-3 py-1",
yearly === o.v ? "bg-da-surface font-medium shadow-da-sm" : "text-da-muted-fg",
)}
>
{o.l}
</button>
))}
</div>
</div>
<div className="flex flex-col border-t border-da-border bg-da-surface-2 p-6 sm:p-8 md:border-t-0 md:border-l">
<p className="text-sm text-da-muted-fg">Estimated total</p>
<p className="mt-1 text-4xl font-semibold tracking-tight tabular-nums" aria-live="polite">
{fmt(monthly)}
<span className="text-base font-normal text-da-muted-fg">/mo</span>
</p>
<p className="mt-1 text-[13px] text-da-muted-fg">{yearly ? `${fmt(monthly * 12)} billed yearly` : "Billed monthly, cancel anytime"}</p>
<ul className="mt-6 space-y-2 text-[13px]">
{included.map((f) => (
<li key={f} className="flex items-center gap-2">
<Check aria-hidden className="size-3.5 text-da-accent-fg" />
{f}
</li>
))}
</ul>
<a
href={cta.href}
className="da-focus da-transition mt-8 inline-flex h-10 items-center justify-center rounded-da-md bg-da-primary px-4 text-sm font-medium text-da-primary-fg hover:bg-da-primary/90 md:mt-auto"
>
{cta.label}
</a>
</div>
</div>
</div>
</section>
);
}
export default PricingUsage;
modules/minimal/section/pricing-usage/index.tsx
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow / title / description | string | — | Header copy. |
| tiers | { upTo, perSeat }[] | — | Volume tiers (last upTo = Infinity). |
| min / max / defaultSeats | number | 1 / 250 / 24 | Slider bounds. |
| currency | string | "$" | Currency symbol. |
| included | string[] | — | Inclusions list. |
| cta | { label, href } | — | Action. |
| className | string | — | Classes on the section. |
Other pricing variants in Minimal
Pricing Columns
Three quiet pricing columns with a segmented monthly/yearly control, per-seat units, and a featured plan lifted by a ring, soft shadow and an indigo hairline highlight on top.
Pricing Rows
Plans stacked as full-width horizontal rows (name + description, highlight chips, price, CTA), the featured one ringed in indigo, followed by an inverted ink enterprise strip.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Pricing Fees
Pay-as-you-go fee sheet: big per-method rates in bordered cells (4-up), then a “no hidden fees” checklist band.
Pricing Matrix
Enterprise feature matrix: sticky-looking header row of plans, grouped rows with section headings, checks/dashes/values and a tinted featured column.
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”.
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.
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.
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.
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.
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.
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.
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.
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.
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.