Staaarter

Pros And Cons Comparison

A comparison feature section with a centered header above two side-by-side panels: a muted, low-contrast panel listing drawbacks with X icons, beside a solid dark panel listing benefits with check icons.

By Staaarter Team
Feature
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/pros-and-cons-comparison.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/feature/feature43.tsx instead.

Usage

The file also exports feature43Demo, 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 { Feature43, feature43Demo } from "@/components/blocks/feature/feature43";

export default function Page() {
  return <Feature43 {...feature43Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringnoneSmall label above the heading.
headingReactNodenoneSection heading.
descriptionstringnoneSupporting copy under the heading.
consPanelnoneMuted panel title and its list of drawback items.
prosPanelnoneSolid dark panel title and its list of benefit items.
classNamestringnoneExtra classes for the outer section element.

Types

type Panel = {
  title: string;
  items: string[];
};

Behavior notes

  • Static server component, no client-side state.
  • The cons panel uses a muted background with X icons; the pros panel uses a solid bg-foreground/text-background pairing so it stays a true dark panel in both light and dark mode, with check icons.