Before/After Comparison Cards

Side-by-side comparison cards with bullet lists showing pain points vs. solutions after transformation. Perfect for demonstrating product value, workflow improvements, or competitive advantages.

FREE

Feature30: Before/After Comparison Cards

Two-column comparison layout that renders a firstColumn and secondColumn side by side, each a bordered card with a label and a bulleted list, typically used to contrast a "before" pain-point list against an "after" solution list.

Free block

This block is free. No license or account is required: install it with the CLI and use it in unlimited projects.

Installation

Radix flavor

bash
npx shadcn add "https://ui.beste.co/r/feature30"

Base UI flavor

bash
npx shadcn add "https://ui.beste.co/r-base/feature30"

This installs the block to components/beste/block/feature30.tsx and the shadcn/ui badge and button components it depends on.

Quick start

The installed file exports feature30Demo alongside the block: the exact props behind the preview above. Spread it to get a working comparison section in one line.

tsx
import { Feature30, feature30Demo } from "@/components/beste/block/feature30";

export default function Page() {
  return <Feature30 {...feature30Demo} />;
}

Then replace the demo with your own props. Written out, a trimmed setup looks like this:

tsx
import { Feature30 } from "@/components/beste/block/feature30";

export default function Page() {
  return (
    <Feature30
      badge={{ label: "Compare", variant: "secondary" }}
      heading="The difference is clear"
      description="See how your workflow transforms when you switch platforms."
      firstColumn={{
        id: "before",
        label: "Before",
        items: [
          { id: "b1", text: "Manual data entry across multiple tools" },
          { id: "b2", text: "Hours spent searching for information" },
        ],
      }}
      secondColumn={{
        id: "after",
        label: "After",
        highlighted: true,
        items: [
          { id: "a1", text: "Single source of truth, auto-synced" },
          { id: "a2", text: "Instant search with smart filters" },
        ],
      }}
      buttons={[{ id: "btn-1", label: "Start free trial", href: "/signup" }]}
    />
  );
}

Props

PropTypeDefaultDescription
badge{ label: string; variant?: "default" | "secondary" | "outline" }Badge above the heading
headingstringSection heading
descriptionstringSection intro text
firstColumnComparisonColumnLeft card; the two-column grid is skipped entirely when both columns are omitted
secondColumnComparisonColumnRight card
buttonsButtonItem[][]CTA buttons below the columns
classNamestringExtra classes for the outer <section>
ts
type ComparisonColumn = {
  id: string;
  label: string;
  highlighted?: boolean;
  items: ComparisonItem[];
};

type ComparisonItem = { id: string; text: string };

type ButtonItem = {
  id: string;
  label: string;
  href?: string;
  variant?: "default" | "secondary" | "outline" | "ghost" | "link" | "destructive";
};

Behavior notes

More Feature blocks

View all Feature
PRO

feature55

Two-Plan Comparison Table

Side-by-side comparison table with check/cross icons and text values for two plan tiers. Perfect for free vs premium comparisons and feature tier breakdowns.

FREE

feature9

Three-Step How-To

Three side-by-side step cards with a media surface anchored to the bottom of each card. Each slot accepts an image, video, or live registry-component asset.

PRO

feature168

Before/After Comparison Toggle

Interactive toggle that switches between two sets of feature items with staggered fade-in animation. Pill-style toggle button with distinct visual states for before and after. Great for product comparisons.

PRO

feature75

Product Cards with Badge Tags

2-column grid of linked product cards with multiple badge tags and learn-more arrows. Perfect for showcasing product suites, solution offerings, or categorized tools.

PRO

feature121

Rating Cards with Stars

Responsive grid of feature review cards with star ratings and review counts. Ideal for feature ratings, user reviews, or quality metrics.

FREE

feature63

Use Case Image Cards

3-column grid of image cards with text overlay, hover zoom effect, and arrow indicators. Perfect for showcasing team use cases, industry solutions, or department-specific features.