Tiered usage pricing sectionTier Curve Pricing

Tiered usage pricing section: usage pricing as a staircase chart: drag to your monthly volume and see the rate and the month's bill.

Features

  • Price per 1,000 drawn as a staircase over monthly volume; every step down is a cheaper tier
  • Drag across the chart, or use the arrow keys, to pick a month's volume
  • The month's total glides to the new figure, with the tier and its rate under it
  • A minimum monthly charge, shown when it applies
  • A real range input over the chart, with the volume and total read out to screen readers

Best for: APIs and platforms billed by usage, where the price per unit drops as volume grows.

Installation

npm install motion lucide-react clsx tailwind-merge

Then copy the files from the Code tab into the same paths in your project, in TypeScript or JavaScript.

Props

PropTypeDefaultDescription
titleReactNode-The section's headline.
subtitleReactNode-One grey line under it.
unitstring-What is counted, in the plural: "emails".
tiersPriceTier[]-name, upTo (null for the top tier) and perThousand in dollars.
stopsnumber[]-The volumes the slider stops at, smallest first.
startAtnumber0Which stop it starts on.
minimumnumber-The least a month costs, in dollars.
includedstring[]-What every volume includes.
cta{ label: string; href: string }-The button.
classNamestring-Extra classes for the section.

FAQ

Is the Tier Curve Pricing free to use?

Yes. Tier Curve Pricing is free to copy into your own projects. Open the Code tab and paste the files into your app.

Does Tier Curve Pricing work with Next.js and React?

Yes. It's a React client component made for the Next.js App Router, styled with Tailwind CSS and animated with Framer Motion (the motion package).

Can I use Tier Curve Pricing in JavaScript instead of TypeScript?

Yes. Every file comes in TypeScript and JavaScript. Switch the language in the Code tab.

What does Tier Curve Pricing need installed?

motion, lucide-react, clsx, tailwind-merge, plus the shared helpers from the Installation page.

Is Tier Curve Pricing accessible?

Every link and button is reachable by keyboard with a visible focus ring, and the animation stays still for visitors who ask for reduced motion.