Back to components
ComponentPricingFree

Pricing Table React component

Pricing plans side by side with a monthly / yearly switch, prices that roll when the period changes, a highlighted plan with a badge, included and excluded features, and a custom-price plan for enterprise.

About the Pricing Table component

Pricing Table shows your plans side by side, with a Monthly / Yearly switch on top. The selected period slides between the two options, and every price rolls up or down to its new value when the period changes. Under each price a short line says Free forever, Billed monthly or the yearly total, for example $228 billed yearly.

Each plan has a name, a description, the price, a full-width button and a feature list. Features marked included: false are crossed out with an x. The highlighted plan is raised a little, gets a brighter border, a soft shadow, a primary button and a Most popular badge. A plan with price null shows Custom and a Contact sales button. Cards fade up one after another on load, and on phones they stack in one column.

When to use it

Use it on the pricing page or the pricing section of a SaaS, app or membership site, anywhere people compare plans before they pay.

Pass href to send a plan to a checkout or contact page, or handle onSelect to open your own checkout with the plan id and billing period.

Installation

Add the Pricing Table component to your project with the shadcn CLI. It lands in components/pricing-table.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/pricing-table

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

Related components

Animated Stats
$4
Scroll Zoom Media Reveal
$4
World Map Arc
$4
Dice Roll Discount Popup
Free
Data Table
Free
Orbit Globe
$4