Staaarter

Before vs After Comparison

A centered, two-column comparison list contrasting the current state of a product against what changes once the new version launches. The "before" column uses muted text with an X-style icon per row, the "after" column uses full-strength text with a check icon, so the improvement reads at a glance.

By Staaarter Team
Coming Soon
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/before-vs-after-comparison.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/coming-soon/comingsoon12.tsx instead.

Usage

The file also exports comingsoon12Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { ComingSoon12, comingsoon12Demo } from "@/components/blocks/coming-soon/comingsoon12";

export default function Page() {
  return <ComingSoon12 {...comingsoon12Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstring"Coming soon"Small label above the heading.
headingstring"What's changing"Section heading.
descriptionstring"A quick look at how things improve..."Section subheading.
beforeLabelstring"Today"Column header for the current-state side.
afterLabelstring"After launch"Column header for the upcoming side.
rowsComparisonRow[]nonePaired before/after statements, one row of each per entry.
classNamestringnoneExtra classes for the outer section element.

Types

export interface ComparisonRow {
  id: string;
  before: string;
  after: string;
}

Behavior notes

  • Fully static: a plain Server Component, both columns render from the same fixed `rows` array, there is no toggle or animation between the two states.