Skip to content

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-clean/section/pricing-toggle
Open ↗

Source

"use client";

import { useState } from "react";
import { cn } from "@/lib/utils";

export interface PricingToggleProps {
  title?: string;
  plans?: { name: string; monthly: number; yearly: number; blurb: string; href: string }[];
  className?: string;
}

const DEFAULT_PLANS = [
  { name: "Personal", monthly: 0, yearly: 0, blurb: "One site on a frame.studio address.", href: "#personal" },
  { name: "Studio", monthly: 20, yearly: 16, blurb: "Custom domain, fonts and password pages.", href: "#studio" },
  { name: "Agency", monthly: 60, yearly: 48, blurb: "Unlimited sites and client handoff.", href: "#agency" },
];

/** 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. */
export function PricingToggle({ title = "Pricing", plans = DEFAULT_PLANS, className }: PricingToggleProps) {
  const [yearly, setYearly] = useState(true);
  return (
    <section aria-labelledby="mc-pt-title" className={cn("da-section bg-da-bg text-da-fg", className)}>
      <div className="da-container">
        <div className="flex flex-wrap items-end justify-between gap-6">
          <h2 id="mc-pt-title" className="font-da-display text-[clamp(2.5rem,6vw,5rem)] leading-none font-medium tracking-da-display">
            {title}
          </h2>
          <div role="radiogroup" aria-label="Billing period" className="flex gap-5 font-da-mono text-xs tracking-da-label uppercase">
            {[
              { v: false, l: "Monthly" },
              { v: true, l: "Yearly (−20%)" },
            ].map((o) => (
              <button
                key={o.l}
                type="button"
                role="radio"
                aria-checked={yearly === o.v}
                onClick={() => setYearly(o.v)}
                className={cn("da-focus rounded-da-sm pb-1", yearly === o.v ? "border-b-2 border-da-accent" : "text-da-muted-fg hover:text-da-fg")}
              >
                {o.l}
              </button>
            ))}
          </div>
        </div>
        <ul className="mt-12 border-t border-da-border-strong">
          {plans.map((p) => {
            const price = yearly ? p.yearly : p.monthly;
            return (
              <li key={p.name} className="border-b border-da-border">
                <a
                  href={p.href}
                  className="group da-focus da-transition grid grid-cols-[1fr_auto] items-baseline gap-x-6 gap-y-1 px-2 py-6 hover:bg-da-fg hover:text-da-bg sm:grid-cols-[12rem_1fr_auto_auto]"
                >
                  <span className="font-da-display text-3xl font-medium tracking-da-display">{p.name}</span>
                  <span className="col-span-2 row-start-2 opacity-70 sm:col-span-1 sm:row-start-auto">{p.blurb}</span>
                  <span className="font-da-display text-3xl font-medium tracking-da-display tabular-nums">
                    €{price}
                    <span className="ml-1 font-da-mono text-xs tracking-normal opacity-70">/mo</span>
                  </span>
                  <span
                    aria-hidden
                    className="hidden text-2xl transition-transform duration-(--da-duration) group-hover:translate-x-1 group-hover:-translate-y-1 sm:block"
                  >
                    ↗
                  </span>
                </a>
              </li>
            );
          })}
        </ul>
      </div>
    </section>
  );
}

export default PricingToggle;

modules/mono-clean/section/pricing-toggle/index.tsx

Props

PropTypeDefaultDescription
titlestring—Heading.
plans{ name: string; monthly: number; yearly: number; blurb: string; href: string }[]—Plans.
classNamestring—Extra classes on the root.

Other pricing variants in Mono Clean

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 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.

MinimalPricing

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.

MinimalPricing

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.

MinimalPricing

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.

MinimalPricing

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