Staaarter

Figure-Led Evidence Rows

A feature section that opens on a tall image tile floating a live before-and-after card, then sets out its evidence as hairline rows leading on an oversized light figure paired with an explanation and the method behind it. Good for a proof-heavy section that wants to feel measured rather than promotional.

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 media-slot dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/figure-led-evidence-rows.json

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

Usage

The file also exports feature3Demo, 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 { Feature3, feature3Demo } from "@/components/blocks/feature/feature3";

export default function Page() {
  return <Feature3 {...feature3Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringnoneSmall label above the heading.
headingReactNodenoneSection heading, right column.
descriptionstringnoneSupporting copy under the heading.
imageMediaSlotImagenoneTall photo in the left column.
beforeAfterBeforeAfterStatnoneMetric shown in the card floating over the image's bottom edge.
rowsEvidenceRow[]noneHairline evidence rows below the heading.
classNamestringnoneExtra classes for the outer section element.

Types

type BeforeAfterStat = { metric: string; label: string };

type EvidenceRow = {
  /** Short numeral or label rendered oversized and light, e.g. "01" or "3x". */
  figure: string;
  title: string;
  description: string;
  method: string;
};

Behavior notes

  • Entirely static and server-rendered: the floating before-and-after card is a decorative absolutely-positioned card over the image, not a draggable comparison slider.
  • The oversized figure column is a plain styled string (font-extralight, low-opacity muted color), not a counted-up animation.
  • Row layout is a 3-column grid on sm+ screens (figure, explanation, method) and stacks to a single column on mobile.