Compare Page React template for Tailwind CSS v4
v1.1.0Updated in 1.9.0
A React comparison page template (Acme vs a competitor): a verdict hero, a feature table, price comparison, migration steps and FAQ.
Pick Taskly, Boardify or Planhub in the segmented control above the versus card (arrow keys move between them) and the whole page follows: the title and one-line verdict, the three quick facts, the six reasons teams switch, every table row, the price comparison, the import steps, the switcher quotes and the FAQ. The feature table groups rows under Planning, Docs, Automations, Security and Pricing with a check, a cross, a partial mark or a short value; the info button beside a value shows its note in a tooltip (hover or keyboard focus). Its header row with both wordmarks sticks under the page header while you scroll, and the Only show differences switch hides the rows where both products match. Drag the team size slider (or use the arrow keys) from 2 to 100 people, with 10, 25 and 50 marked: both yearly costs roll to their new totals with the per-seat breakdown and add-ons, and the band below says how much Acme saves, or honestly says when the other tool costs less. On phones the table becomes one card per feature with both values side by side and notes written out under them, the steps and price cards stack, and nothing scrolls sideways.
Compare Page is a Pro React template in the React website templates category, written in TypeScript for React 19 and Tailwind CSS v4. It installs as source with npx wingo-ui@latest add compare-page, together with CTA Section, FAQ Section, Feature Grid, Hero Section, Marketing Footer and 14 more and the npm packages motion and lucide-react.
Built with
The sections this page is made of. In the full-screen preview, hold Alt to outline each one on the page.
Add to a project
Requirements: React 19 and Tailwind CSS v4, in Next.js (App Router or Pages), Vite or React Router. Installation guide · Next.js setup · Vite setup
npx wingo-ui@latest add compare-pageCompare Page is part of Pro, with 298 more Pro items: $8 a month or $150 once. 14-day refund before you download any Pro item. See plans
Usage
Import ComparePage from @/components/templates/compare-page.
// app/(marketing)/compare/[competitor]/page.tsx
"use client"
import Link from "next/link"
import { useParams, useRouter } from "next/navigation"
import { ComparePage } from "@/components/templates/compare-page"
import { COMPETITORS } from "@/components/templates/compare-page-data"
export default function CompareRoute() {
const { competitor } = useParams<{ competitor: string }>()
const router = useRouter()
return (
<ComparePage
linkComponent={Link}
competitors={COMPETITORS}
competitor={competitor}
onCompetitorChange={(id) => router.replace(`/compare/${id}`, { scroll: false })}
/>
)
}Props
competitorsdefault"COMPETITORS"Competitor[]Every competitor the switcher offers: { id, name, icon, tagline, verdict, facts, reasons, groups, pricing, steps, quotes, faq }.
defaultCompetitordefault"taskly"stringThe competitor the page opens on while uncontrolled.
competitorstringControlled competitor id; pair it with onCompetitorChange (e.g. to route to /compare/<id>).
onCompetitorChange(id: string) => voidCalled when the switcher changes.
designdefault"classic""classic" | "bold"The whole page's look. classic follows the layout props; bold: a pill header, a magazine size title on an aurora with tinted bands, the versus card under it, illustrated reason cards, the table on a raised panel, an inverted Acme price card, big step numbers, a featured quote, FAQ cards, a closing band over a drawn scene and a wordmark footer. headerProps and footerProps still win.
backgrounddefault"grid""plain" | "soft" | "glow" | "aurora" | "grid" | "dots"The main background: plain is the bare page color; the others tint the page and add a glow, an aurora, a grid or dots over the first screen. A design picks its own unless you set one. Classic uses grid, bold aurora; over plain the hero draws its own grid or mesh.
backgroundColordefault"oklch(0.62 0.14 275)"stringThe tint and glow color of the main background.
bandBackgrounddefault"muted""muted" | "tinted" | "gradient" | "dots"The secondary background of the alternating bands. Cards, fields and tiles inside a band are lifted one step above it, so they never share its color.
bandColordefault"oklch(0.62 0.14 275)"stringThe tint of tinted and gradient bands; defaults to backgroundColor.
showSwitcherdefaulttruebooleanThe segmented control above the versus card; off for a page about one competitor.
heroLayoutdefault"split""split" | "centered"split: copy left, versus card right; centered: copy over the card. Applies to the classic design.
acmePricingdefault"ACME_PRICING"ComparePricingAcme's side of the price comparison: { plan, perSeat, minSeats?, platformFee?, addOns? }.
teamSizesdefault"[10, 25, 50]"number[]The labeled marks on the team size slider, which runs from 2 to 100 people.
defaultTeamSizedefault25numberThe team size the price comparison opens on (2 to 100).
defaultOnlyDifferencesdefaultfalsebooleanThe table opens with matching rows hidden.
highlightdefaulttruebooleanTints the Acme column of the table.
stickyTableHeaderdefaulttruebooleanThe table's header row sticks under the page header from 768px.
showReasonsdefaulttruebooleanThe "Why teams switch" feature grid.
showTabledefaulttruebooleanThe feature by feature table.
showPricingdefaulttruebooleanThe yearly price comparison with the team size slider.
showMigrationdefaulttruebooleanThe three import steps.
showTestimonialsdefaulttruebooleanQuotes from teams that switched.
showFaqdefaulttruebooleanThe switching FAQ.
showCtadefaulttruebooleanThe closing call to action.
ctaVariantdefault"inverted""inverted" | "soft" | "split" | "plain"The look of the closing call to action. Applies to the classic design.
headerdefaulttruebooleanThe sticky marketing header; turn it off when the page sits in a site layout.
footerdefaulttruebooleanThe marketing footer.
headerPropsPartial<MarketingHeaderProps>Passed to MarketingHeader (announcement, ctaTone, items...).
footerPropsPartial<MarketingFooterProps>Passed to MarketingFooter.
tonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"The switcher thumb, slider, switch, step numbers, icon tiles and FAQ accents.
ctaTonedefault"neutral""neutral" | "brand" | "success" | "warning" | "danger" | "info"The primary buttons of the hero, the import steps and the closing band.
animateIndefaulttruebooleanThe hero rises in once on mount; off in thumbnails and under reduced motion.
localedefault"en-US"stringIntl locale for the prices (always USD).
getImportHref(competitor: Competitor) => stringThe importer link; default /sign-up?import=<id>.
linkComponentdefault"<a>"(props: LinkComponentProps) => ReactNodeThe router link for every link (next/link in an app); default the LinkProvider's.
labelsdefault"DEFAULT_COMPARE_PAGE_LABELS"Partial<ComparePageLabels>Every visible string; titles that name the competitor are functions of its name.
classNamestringClasses for the root.
classNamesPartial<Record<ComparePageSlot, string>>Classes for switcher, hero, versus, reasons, table, pricing, migration, testimonials, faq and cta.
Parts
CompareTable
componentThe grouped feature table: a real table with a sticky header row from 768px, a card per row on phones. Takes div props.
competitorCompetitorThe competitor; its groups fill the rows.
groupsCompareGroup[]Replaces competitor.groups.
onlyDifferencesdefaultfalsebooleanHides rows where both values match.
highlightdefaulttruebooleanTints the Acme column.
stickyOffsetdefault64number | falseThe header row sticks this many px from the top; false keeps it in place.
brandReactNodeReplaces the Acme logo in the header row.
labelsPartial<ComparePageLabels>The table strings.
CompareCellView
componentOne value: a check, a cross, a partial mark or text, with its note as a tooltip or inline text. Takes span props.
cellCompareCelltrue, false, "partial", a string, or { value, note }.
productstringWhose value it is, for the note's label.
noteModedefault"tooltip""tooltip" | "inline"The note behind an info button or written under the value.
labelsPick<ComparePageLabels, "included" | "notIncluded" | "partial" | "note">Screen reader and partial labels.
CompareWordmark
componentA fictional competitor drawn as its lucide glyph and name (never a real logo). Takes span props.
competitorPick<Competitor, "name" | "icon">The competitor.
sizedefault"md""sm" | "md" | "lg"Glyph tile and text size.
compareYearlyCost
functioncompareYearlyCost(pricing, seats): (perSeat + add-ons) x max(seats, minSeats) x 12 + platformFee x 12, in dollars.
COMPETITORS
constantTaskly, Boardify and Planhub with their verdicts, reasons, 21 table rows, pricing, steps, quotes and FAQ.
ACME_PRICING
constantAcme Pro at $12 per user per month.
DEFAULT_COMPARE_PAGE_LABELS
constantThe English strings.
Competitor
type{ id, name, icon, tagline, verdict, facts, reasons, groups, pricing, steps, quotes, faq }.
CompareGroup
type{ id, label, rows: CompareRow[] }.
CompareRow
type{ id, label, acme: CompareCell, competitor: CompareCell }.
CompareCell
typetrue | false | "partial" | string, or { value, note }.
ComparePricing
type{ plan, perSeat, minSeats?, platformFee?, addOns? }.
COMPARE_PAGE_DESIGNS
constantThe design names, classic first: ["classic", "bold"].
ComparePageProps
typeProps of ComparePage.
ComparePageDesign
typeThe values of the design prop: "classic" | "bold".
Examples
Bold design
design="bold": a pill header, huge type on an aurora with tinted bands, illustrated reasons, an inverted Acme price, big step numbers and a wordmark footer.
Boardify, brand tone
Opens on Boardify with the marketing orange on the switcher, slider and every primary button.
Centered hero, differences only
The copy over the versus card, and the table opens with matching rows hidden.
One competitor, short page
No switcher, no testimonials or migration steps: a focused Acme vs Taskly page with a soft closing band.
Inside a site layout
No header or footer, the table header stays in place and the Acme column is not tinted.
Dependencies
Files
- components/templates/compare-page.tsx
- components/templates/compare-page-data.ts
FAQ
Is the React Compare Page template free?
The preview, props and docs are free; copying the source needs a Pro plan. See plans.
How do I install Compare Page?
Run npx wingo-ui@latest add compare-page. It also adds the Wingo UI items it builds on (CTA Section, FAQ Section, Feature Grid, Hero Section, Marketing Footer and 14 more) and the npm packages motion and lucide-react. With shadcn, add the @wingo-ui registry with your API key, then run npx shadcn@latest add @wingo-ui/compare-page.
How does Compare Page behave on phones?
On phones the table becomes one card per feature with both values side by side and notes written out under them, the steps and price cards stack, and nothing scrolls sideways.
See also
Related guides
- SaaS Comparison Page: Honest vs Pages That Convert
Build it: screens and apps10 min read
- SaaS Website Template: The 7 Pages Beyond the Home Page
Build it: screens and apps20 min read
New components by email
New posts, product news and occasional offers from Wingo UI. We count clicks to keep it relevant.