shadcn.io is not affiliated with official shadcn/ui
Social Proof Pricing Block for React
Pricing beside proof for a reviews widget: a 4.9 rating at display size, a customer quote, a stats grid and customer wordmarks on one pane, two horizontal plan cells under a monthly and yearly switch on the other.
Installation
Overview
Pair trust signals with pricing in this two-pane layout, shown for Hearth Reviews, a product-reviews widget for online stores. A header row holds the headline, a line that gives the rating and a monthly and yearly Segment Group switch. Below it, each pane is made of cells whose hairlines overshoot the page's rails, with a plus mark where they start. The proof pane leads with the rating at display size beside five stars, then a quoted customer in a figure with an Avatar, a four-cell stats grid on shared hairlines and a row of customer wordmarks. The plans pane holds two horizontal plan cells: a price that rolls to its new amount with Sliding Number beside the name, a full-width Shine Button and the features in two columns. Scale is tinted, carries an outline Best value Badge and the section's one primary button. On a phone the plans come first, Scale at the top, and each list folds after five features. Built with Badge, Avatar, Button, Segment Group, Sliding Number, Shine Button, Guides and Lucide icons, with CSS transitions only. For trust-sensitive product pages, mid-ticket SaaS and B2B landing pages.
FAQ
How do I change the rating, the quote, the stats and the logos?
Each lives in a constant at the top of the file. RATING holds the score and the review count, TESTIMONIAL the quote, the author's name, role, company and the initials shown in the avatar, STATS the four cells of the grid as label and value strings, and CUSTOMERS the wordmarks, each with a Lucide icon, a name and a lettering class string that gives it its own type. Swap the icon and lettering for your customers' real logos (an svg with an accessible name) once you have permission to show them, and use your real figures.
How do I change the plans and prices?
Edit PLANS: each plan has a name, a description, a monthly price, an annual price (the monthly amount when billed yearly), its features, the call to action's cta and href, and featured: true with a badge on the plan that should stand out, which gets the tinted cell, the badge, the first place on a phone and the primary button. The line under the price computes the yearly total from annual. CURRENCY is the symbol written before each price, and FOLDED is how many features a phone shows first.
How do I send the plan and billing period to checkout?
Each call to action is a real link to its plan's href. It's a ShineButton with render set to an a element and nativeButton={false}. Add the plan and the period to it, for example /checkout?plan=scale&billing=yearly, and let your server map them to your payment provider's monthly or yearly price.
Is the trust pane accessible?
Yes. The stars are decorative and hidden; the score reads as "Rated 4.9 out of 5". The quote is a figure with a blockquote and a figcaption naming its author, and the avatar's initials are hidden since the name is already there. The stats are a description list, so each value is read with its label, and the wordmarks are a list of names. The billing switch is a radio group named "Billing period", and both calls to action carry their plan's name for screen readers, as in "Start free trial, Scale plan".
How does the two-pane layout adapt to small screens?
From the lg breakpoint the proof and the plans sit side by side; below it they stack with the plans first, the featured plan at the top, so its button comes well within the first screen and a half, and the proof follows. Each list shows its first five features, then a ghost button, "All 6 features", that expands the rest and reads as expanded or collapsed to a screen reader. The stats grid drops from four cells to two and the wordmarks wrap.
When should I use social proof pricing rather than a standard grid?
Use it when strong reviews and adoption justify the price: mid-to-high ticket SaaS and B2B products where trust decides the purchase, with only two plans to compare. A standard grid of three or more plan cards suits products where buyers compare tiers feature by feature.
Related
- “““Pro
Testimonial Inline Pricing
Proof and guaranteesThree ad-manager plans as compact rows, each pairing its price, button and first four features with a quote from a customer on that plan, set beside it at reading size.
- Pro
Pricing With Guarantee
Proof and guaranteesA free trial with a refund window drawn as a timeline: today, day 12, day 14 and day 30 on one line, beside the yearly plan, its price and call to action. It turns vertical on a phone.
- 30Pro
Money Back Hero Pricing
Proof and guaranteesOne plan sold on its guarantee: an oversized 30-day seal, its promise written round the edge, beside the plan's price, features and call to action.
- Pro
Compact Rows Pricing
Plan rowsThe densest price list: a type foundry's six licenses set like a menu in mono, each row a name, what it covers and dot leaders running out to its price, with a buy button.
- Pro
Popular Choice Pricing
Proof and guaranteesWhat customers chose: a full-width segmented bar sized by the share of teams that picked each plan (18, 64 and 18 percent), where each segment is a tab that opens its plan, with its price, call to action and features, right under the bar.
- Pro
Billing Toggle Pricing
Billing switchesThree plan cards under a monthly and yearly switch that wears its saving in the header row, with prices that roll to their new amount and each plan a card in a card.