Three-Plan Pricing Toggle
Three plans with a monthly/yearly switch, yearly prices derived from the monthly figure so the two can never disagree.
One price given a whole card, with the objection a one-time price raises answered under the button rather than in a FAQ further down.
components/pricing-single.tsxnpx hoverlab add pricing-single
Or over MCP, from your editor's agent — no account needed.
Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.
Start a page with this section — add more, order them, and leave with the page source.
No subscription, no seat count, no tier above this one to discover later.
Pro
The licence to ship what you have is permanent. What runs for twelve months is access to components published after you buy — nothing you already copied stops working, and nothing checks at runtime.
What is included
Rendered live in your current theme — this is the same component whose source is below, not a screenshot of it.
/**
* <PricingSingle> — one price, one card, nothing to compare it to.
*
* <PricingTiers> and <ComparisonTable> both assume a ladder, and a ladder
* is a choice architecture: three columns exist to make the middle one look
* reasonable. A product with one price has no middle, and forcing it into a
* three-column table means inventing two plans nobody wants in order to
* sell the one that exists.
*
* Which changes what the block has to do. With no columns to compare, every
* doubt has to be answered inside the one card — so the layout gives the
* price a whole side and the inclusions the other, and the objection
* handling ("what happens when it expires", "is it per project") sits
* directly under the button rather than in a FAQ further down the page.
*
* The strikethrough is `<s>` around a real former price with the saving
* spelled out. A crossed-out number with no basis is the oldest dishonest
* pattern in pricing, so `compareAtPrice` is optional and the block says
* what the difference is when it is set.
*
* `note` under the CTA is not decoration either. A one-time price raises
* exactly one question — what does this stop giving me later — and a buyer
* who cannot find the answer assumes the worst one.
*/
import * as React from 'react'
import { Check, Info } from 'lucide-react'
export interface PricingSingleProps {
planName?: string
price?: string
/** Former price. Rendered struck through, with `savingLabel` beside it. */
compareAtPrice?: string
savingLabel?: string
/** e.g. 'one-time' or '/ year'. Sits next to the price. */
cadence?: string
heading?: string
subheading?: string
features?: string[]
ctaLabel?: string
ctaHref?: string
/** The objection the price itself raises, answered under the button. */
note?: string
className?: string
}
const DEFAULT_FEATURES = [
'Every effect, block, page and template',
'Unlimited projects, including client work',
'Twelve months of catalog updates',
'CLI, MCP server and public API',
'No seat fee on people who see what you ship',
'No attribution required, ever',
]
export function PricingSingle({
planName = 'Pro',
price = '$79',
compareAtPrice,
savingLabel,
cadence = 'one-time',
heading = 'One price, paid once',
subheading = 'No subscription, no seat count, no tier above this one to discover later.',
features = DEFAULT_FEATURES,
ctaLabel = 'Get Pro',
ctaHref = '/pricing',
note = 'The licence to ship what you have is permanent. What runs for twelve months is access to components published after you buy — nothing you already copied stops working, and nothing checks at runtime.',
className = '',
}: PricingSingleProps) {
return (
<section
className={`mx-auto w-full max-w-4xl px-4 py-16 sm:px-6 sm:py-24 ${className}`}
>
<div className="mx-auto mb-10 max-w-2xl text-center">
<h2 className="text-balance text-3xl font-bold tracking-tight sm:text-4xl">
{heading}
</h2>
{subheading ? (
<p className="mt-3 text-pretty text-muted-foreground">{subheading}</p>
) : null}
</div>
<div className="overflow-hidden rounded-3xl border border-border/60 bg-card/60">
<div className="grid sm:grid-cols-[minmax(0,1fr)_minmax(0,1.1fr)]">
{/* Price side. */}
<div className="border-b border-border/60 p-8 sm:border-b-0 sm:border-e">
<p className="break-words text-sm font-semibold uppercase tracking-wide text-primary">
{planName}
</p>
{/* Wraps: `price` and `cadence` are both caller-supplied, and a
5xl price beside a cadence label overflows this panel long
before either string looks unreasonable. */}
<div className="mt-4 flex flex-wrap items-baseline gap-2">
<span className="min-w-0 break-words text-5xl font-extrabold tracking-tight">{price}</span>
{cadence ? (
<span className="text-sm text-muted-foreground">{cadence}</span>
) : null}
</div>
{compareAtPrice ? (
<p className="mt-2 text-sm text-muted-foreground">
<s>{compareAtPrice}</s>
{savingLabel ? (
<span className="ms-2 font-medium text-emerald-600 dark:text-emerald-400">
{savingLabel}
</span>
) : null}
</p>
) : null}
<a
href={ctaHref}
className="mt-6 flex w-full items-center justify-center rounded-xl bg-primary px-5 py-3 text-center font-semibold text-primary-foreground transition-opacity hover:opacity-90"
>
<span className="min-w-0 break-words">{ctaLabel}</span>
</a>
{note ? (
<div className="mt-5 flex gap-2.5 text-xs leading-relaxed text-muted-foreground">
<Info aria-hidden className="mt-0.5 h-4 w-4 shrink-0" />
<p>{note}</p>
</div>
) : null}
</div>
{/* Inclusions side. */}
<div className="p-8">
<p className="text-sm font-semibold">What is included</p>
<ul className="mt-4 space-y-3">
{features.map((f) => (
<li key={f} className="flex items-start gap-2.5 text-sm">
<Check
aria-hidden
className="mt-0.5 h-4 w-4 shrink-0 text-emerald-500"
/>
<span className="min-w-0 break-words text-foreground/90">{f}</span>
</li>
))}
</ul>
</div>
</div>
</div>
</section>
)
}
bg-card, text-muted-foreground) — it inherits your theme instead of overriding it.Drop it at components/pricing-single.tsx and import it where you need the section:
import { PricingSingle } from '@/components/pricing-single'7 of this block’s props are simple enough to drive from here. Change them and the block below re-renders — it is the same component whose source is above, not a mock of it. Everything else it accepts is in the table underneath.
Read out of the component’s own type and signature, so this cannot drift from the source below. Every prop has a default — the component renders standalone before you pass it anything.
| Prop | Type | Default |
|---|---|---|
planName | string | 'Pro' |
price | string | '$79' |
compareAtPriceFormer price. Rendered struck through, with `savingLabel` beside it. | string | — |
savingLabel | string | — |
cadencee.g. 'one-time' or '/ year'. Sits next to the price. | string | 'one-time' |
heading | string | 'One price, paid once' |
subheading | string | 'No subscription, no seat count, no tier abov… |
features | string[] | DEFAULT_FEATURES |
ctaLabel | string | 'Get Pro' |
ctaHref | string | '/pricing' |
noteThe objection the price itself raises, answered under the button. | string | — |
className | string | '' |
The same block rendered once to markup, wrapped as a file your framework compiles. Tailwind classes are framework-agnostic, so the design transfers intact — the behaviour does not.
<!--
Single-Plan Price Card — markup from the Hoverlab catalog.
This is the block rendered once to HTML and wrapped as a component
file. It is not a port of the React source: the Tailwind classes carry
the design, which is the part that took the work, and they are the same
in every framework.
This block has no interactive behaviour, so nothing is missing.
-->
<section class="mx-auto w-full max-w-4xl px-4 py-16 sm:px-6 sm:py-24 ">
<div class="mx-auto mb-10 max-w-2xl text-center">
<h2 class="text-balance text-3xl font-bold tracking-tight sm:text-4xl">One price, paid once</h2>
<p class="mt-3 text-pretty text-muted-foreground">No subscription, no seat count, no tier above this one to discover later.</p>
</div>
<div class="overflow-hidden rounded-3xl border border-border/60 bg-card/60">
<div class="grid sm:grid-cols-[minmax(0,1fr)_minmax(0,1.1fr)]">
<div class="border-b border-border/60 p-8 sm:border-b-0 sm:border-e">
<p class="break-words text-sm font-semibold uppercase tracking-wide text-primary">Pro</p>
<div class="mt-4 flex flex-wrap items-baseline gap-2">
<span class="min-w-0 break-words text-5xl font-extrabold tracking-tight">$79</span>
<span class="text-sm text-muted-foreground">one-time</span>
</div>
<a href="/pricing" class="mt-6 flex w-full items-center justify-center rounded-xl bg-primary px-5 py-3 text-center font-semibold text-primary-foreground transition-opacity hover:opacity-90">
<span class="min-w-0 break-words">Get Pro</span>
</a>
<div class="mt-5 flex gap-2.5 text-xs leading-relaxed text-muted-foreground">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-info mt-0.5 h-4 w-4 shrink-0" aria-hidden="true">
<circle cx="12" cy="12" r="10"></circle>
<path d="M12 16v-4"></path>
<path d="M12 8h.01"></path>
</svg>
<p>The licence to ship what you have is permanent. What runs for twelve months is access to components published after you buy — nothing you already copied stops working, and nothing checks at runtime.</p>
</div>
</div>
<div class="p-8">
<p class="text-sm font-semibold">What is included</p>
<ul class="mt-4 space-y-3">
<li class="flex items-start gap-2.5 text-sm">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 h-4 w-4 shrink-0 text-emerald-500" aria-hidden="true">
<path d="M20 6 9 17l-5-5"></path>
</svg>
<span class="min-w-0 break-words text-foreground/90">Every effect, block, page and template</span>
</li>
<li class="flex items-start gap-2.5 text-sm">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 h-4 w-4 shrink-0 text-emerald-500" aria-hidden="true">
<path d="M20 6 9 17l-5-5"></path>
</svg>
<span class="min-w-0 break-words text-foreground/90">Unlimited projects, including client work</span>
</li>
<li class="flex items-start gap-2.5 text-sm">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 h-4 w-4 shrink-0 text-emerald-500" aria-hidden="true">
<path d="M20 6 9 17l-5-5"></path>
</svg>
<span class="min-w-0 break-words text-foreground/90">Twelve months of catalog updates</span>
</li>
<li class="flex items-start gap-2.5 text-sm">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 h-4 w-4 shrink-0 text-emerald-500" aria-hidden="true">
<path d="M20 6 9 17l-5-5"></path>
</svg>
<span class="min-w-0 break-words text-foreground/90">CLI, MCP server and public API</span>
</li>
<li class="flex items-start gap-2.5 text-sm">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 h-4 w-4 shrink-0 text-emerald-500" aria-hidden="true">
<path d="M20 6 9 17l-5-5"></path>
</svg>
<span class="min-w-0 break-words text-foreground/90">No seat fee on people who see what you ship</span>
</li>
<li class="flex items-start gap-2.5 text-sm">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check mt-0.5 h-4 w-4 shrink-0 text-emerald-500" aria-hidden="true">
<path d="M20 6 9 17l-5-5"></path>
</svg>
<span class="min-w-0 break-words text-foreground/90">No attribution required, ever</span>
</li>
</ul>
</div>
</div>
</div>
</section>
What each framework gets across the whole catalog — effects convert properly; this rung is markup.
The component, its props, the design tokens it expects and the command that installs it — as one prompt. Paste it into Claude, Cursor, v0 or ChatGPT and what they build around it will match the rest of the catalog instead of inventing its own system.
Want the whole screen instead of this one section? Open a page and copy it entire.
All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.
Browse PricingCopying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.
Three plans with a monthly/yearly switch, yearly prices derived from the monthly figure so the two can never disagree.
A slider that turns a rate card into the number a buyer actually cares about, with a per-tier breakdown so the total can be checked rather than taken on trust.
A real table with scoped headers, a sticky first column and screen-reader text behind every check and dash.
One-time packs with the per-credit price worked out for the reader and the saving stated rather than implied — the pricing shape for a product that sells quantity, not a subscription.
A native radiogroup of plans with the current one disabled and the prorated charge announced as it changes — the upgrade dialog, not the marketing table.
The case for the price, made beside the price — what the alternative costs, in the units a buyer already measures.
What actually runs out on each plan, including what happens when it does — the row a pricing table leaves off.