Pricing comparison tableCompare Table Pricing

Pricing comparison table: a full plan comparison whose plan row sticks while you scroll; one switch shows only the differences.

Features

  • Feature rows in groups, each plan's answer as a tick, a dash or a value
  • The plan names, prices and buttons stay stuck at the top while the rows scroll
  • "Only show differences" folds away every row that is the same on every plan
  • A count of how many rows are showing
  • Table roles for screen readers; on phones the table scrolls sideways

Best for: SaaS with three or more plans and a long feature list that buyers compare line by line.

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.
plansComparePlan[]-id, name, price, per, cta and isFeatured.
groupsCompareGroup[]-name and rows; each row's values follow the plans' order.
stickyTopClassNamestring"top-0"Where the plan row sticks, for pages with a fixed navbar: "top-16".
classNamestring-Extra classes for the section.

FAQ

Is the Compare Table Pricing free to use?

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

Does Compare Table 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 Compare Table Pricing in JavaScript instead of TypeScript?

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

What does Compare Table Pricing need installed?

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

Is Compare Table 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.