# Process 4

> Header and photo beside a 2×2 grid of numbered steps (from Marbrook)

A shadcn/ui block from the [@cnippet-blocks](https://blocks.cnippet.dev/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet-blocks/process-4).

- Page, with a live preview: https://shadcn.exchange/r/cnippet-blocks/process-4
- Screenshot: https://shadcn.exchange/shot/cnippet-blocks/process-4/light.png
- Registry item: https://blocks.cnippet.dev/r/process-4.json
- Categories: process
- Listed: 2026-11-01, source last changed 2026-11-01

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/cnippet-blocks/process-4.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- npm packages: `lucide-react`
- Registry items: `@cnippet/utils`

## Files

### `registry/default/sections/process-4/index.tsx`

```tsx
import {
  ClipboardCheck,
  Handshake,
  Home,
  KeyRound,
  Search,
  Sparkles,
} from "lucide-react";
import Image from "next/image";

import { cn } from "@/lib/utils";

import type { Surface } from "../_types/common";
import type { ProcessContent, ProcessIcon } from "../_types/process";
import { defaultProcess4Content } from "./data";
import { SectionHeader, surfaceClass, toneFor } from "./section-header";

const stepIcons: Record<ProcessIcon, typeof Search> = {
  clipboard: ClipboardCheck,
  handshake: Handshake,
  home: Home,
  key: KeyRound,
  search: Search,
  sparkles: Sparkles,
};

/** Header (and an optional photo) in a narrow column beside a 2×2 grid of
 *  numbered steps on a hairline rule. */
export default function Process4({
  content = defaultProcess4Content,
  surface = "muted",
}: {
  content?: ProcessContent;
  surface?: Surface;
}) {
  return (
    <section className={cn("py-20 sm:py-28", surfaceClass[surface])}>
      <div className="mx-auto max-w-7xl px-5 sm:px-8 lg:px-12">
        <div className="grid gap-12 lg:grid-cols-12 lg:gap-16">
          <div className="lg:col-span-4">
            <SectionHeader
              description={content.description}
              eyebrow={content.eyebrow}
              size="sm"
              title={content.title}
              tone={toneFor(surface)}
            />

            {content.image && (
              <div className="relative mt-10 hidden aspect-4/3 overflow-hidden rounded-lg lg:block">
                <Image
                  alt={content.image.alt}
                  className="object-cover"
                  fill
                  sizes="33vw"
                  src={content.image.src}
                />
              </div>
            )}
          </div>

          {/* Cells sit on a `gap-px` parent whose background is the rule
              colour, so each one repaints the band's own surface. */}
          <ol className="grid gap-px overflow-hidden rounded-lg bg-border lg:col-span-8 lg:grid-cols-2">
            {content.steps.map((step, index) => {
              const Icon = stepIcons[step.icon];

              return (
                <li
                  className={cn(
                    "group flex flex-col p-8 transition-colors hover:bg-card lg:p-10",
                    surfaceClass[surface],
                  )}
                  key={step.title}
                >
                  <div className="flex items-center justify-between">
                    <span className="flex size-11 items-center justify-center rounded-md border border-input text-primary transition-colors group-hover:border-primary group-hover:bg-primary group-hover:text-primary-foreground">
                      <Icon className="size-5" />
                    </span>
                    <span className="font-display text-4xl text-muted-foreground/40 transition-colors group-hover:text-secondary">
                      {String(index + 1).padStart(2, "0")}
                    </span>
                  </div>

                  <h3 className="mt-8 font-display text-2xl text-primary">
                    {step.title}
                  </h3>
                  <p className="mt-3 text-muted-foreground text-sm leading-relaxed">
                    {step.body}
                  </p>
                </li>
              );
            })}
          </ol>
        </div>
      </div>
    </section>
  );
}
```

### `registry/default/sections/process-4/data.ts`

```ts
import type { ProcessContent } from "../_types/process";

export const defaultProcess4Content: ProcessContent = {
  description:
    "The same process whether you are buying your first flat or placing a family estate discreetly.",
  eyebrow: "How it works",
  image: {
    alt: "Advisor handing keys to new owners",
    src: "https://res.cloudinary.com/qgiongel/image/upload/q_auto/f_auto/v1786950553/templates/estate/marbrook/cndn_marbrook005.jpg",
  },
  steps: [
    {
      body: "A ninety-minute conversation about budget, streets, schools, and the things you would never write on a form.",
      icon: "search",
      title: "Brief & search",
    },
    {
      body: "We open doors — including the off-market ones — and travel with you. Notes and comparables follow the same evening.",
      icon: "clipboard",
      title: "Private viewings",
    },
    {
      body: "We price the offer against what we know closed, then negotiate terms, timing, and inclusions on your behalf.",
      icon: "handshake",
      title: "Offer & negotiate",
    },
    {
      body: "Surveys, solicitors, finance, and the handover diary — coordinated by your advisor until the keys are in your hand.",
      icon: "key",
      title: "Exchange & keys",
    },
  ],
  title: "Four steps, no surprises",
};
```

### `registry/default/sections/process-4/section-header.tsx`

```tsx
import type React from "react";

import { cn } from "@/lib/utils";

import type { Surface } from "../_types/common";

/** The small uppercase label that opens most headers. */
export const eyebrowClass =
  "inline-flex items-center gap-2 font-medium text-[0.6875rem] uppercase tracking-[0.22em]";

export const surfaceClass: Record<Surface, string> = {
  default: "bg-background text-foreground",
  muted: "bg-muted text-foreground",
  primary: "bg-primary text-primary-foreground",
  secondary: "bg-secondary text-secondary-foreground",
};

/**
 * Which band the header sits on. `photo` keeps literal white, because
 * `--primary-foreground` inverts in dark mode and would be unreadable over a
 * photograph.
 */
export type SectionTone = "light" | "photo" | "primary" | "secondary";

export function toneFor(surface: Surface): SectionTone {
  if (surface === "primary") return "primary";
  if (surface === "secondary") return "secondary";
  return "light";
}

const toneClasses: Record<
  SectionTone,
  { eyebrow: string; heading: string; lede: string; tick: string }
> = {
  light: {
    eyebrow: "text-muted-foreground/70",
    heading: "text-primary",
    lede: "text-muted-foreground",
    tick: "bg-secondary",
  },
  photo: {
    eyebrow: "text-white/50",
    heading: "text-white",
    lede: "text-white/65",
    tick: "bg-secondary",
  },
  primary: {
    eyebrow: "text-primary-foreground/40",
    heading: "text-primary-foreground",
    lede: "text-primary-foreground/60",
    tick: "bg-secondary",
  },
  secondary: {
    eyebrow: "text-secondary-foreground/50",
    heading: "text-secondary-foreground",
    lede: "text-secondary-foreground/70",
    tick: "bg-primary",
  },
};

export function SectionHeader({
  action,
  actionAt = "sm",
  className,
  description,
  eyebrow,
  size = "default",
  title,
  tone = "light",
}: {
  /** Rendered beside the heading block once `actionAt` is reached. */
  action?: React.ReactNode;
  /** A text link fits from `sm`; a row of filter tabs needs `lg`. */
  actionAt?: "lg" | "sm";
  className?: string;
  description?: React.ReactNode;
  eyebrow: string;
  /** `sm` is the narrow-sidebar size used by 4/8 splits. */
  size?: "default" | "sm";
  title: React.ReactNode;
  tone?: SectionTone;
}): React.ReactElement {
  const tones = toneClasses[tone];

  return (
    <div
      className={cn(
        action && "flex flex-col gap-6",
        action &&
          (actionAt === "lg"
            ? "gap-8 lg:flex-row lg:items-end lg:justify-between"
            : "sm:flex-row sm:items-end sm:justify-between"),
        className,
      )}
    >
      <div className={cn(action && "max-w-xl")}>
        <p className={cn(eyebrowClass, tones.eyebrow)}>
          <span className={cn("size-1", tones.tick)} />
          {eyebrow}
        </p>

        <h2
          className={cn(
            "mt-5 font-display",
            tones.heading,
            size === "sm"
              ? "text-3xl leading-[1.1] sm:text-4xl"
              : "text-4xl leading-[1.05] sm:text-5xl",
          )}
        >
          {title}
        </h2>

        {description && (
          <p className={cn("mt-4 max-w-xl leading-relaxed", tones.lede)}>
            {description}
          </p>
        )}
      </div>

      {action}
    </div>
  );
}
```

### `registry/default/sections/_types/common.ts`

```ts
/**
 * Shapes shared by every token-based section. Each section ships this file
 * alongside its own category types, so installing several sections simply
 * rewrites the same file.
 */

/** Which band a section sits on. A style choice, never part of `content`. */
export type Surface = "default" | "muted" | "primary" | "secondary";

export type ImageAsset = {
  alt: string;
  src: string;
};

export type LinkAction = {
  href: string;
  label: string;
};

/** Eyebrow + heading + optional lede, the header most sections open with. */
export type SectionIntro = {
  description?: string;
  eyebrow: string;
  title: string;
};

/** A figure that counts up when it scrolls into view. */
export type Stat = {
  decimals?: number;
  label: string;
  prefix?: string;
  suffix?: string;
  value: number;
};

/** A figure that is displayed as written ("1,240+", "4.9/5"). */
export type Highlight = {
  label: string;
  value: string;
};

export type FormField = {
  label: string;
  name: string;
  /** Only for `type: "select"`. The first option is the default. */
  options?: string[];
  placeholder?: string;
  required?: boolean;
  /** `full` spans both columns of a two-column form. */
  span?: "full" | "half";
  type?: "email" | "select" | "tel" | "text" | "textarea";
};

export type FormContent = {
  description?: string;
  fields: FormField[];
  note?: string;
  submitLabel: string;
  success: {
    description: string;
    resetLabel: string;
    title: string;
  };
  title: string;
};
```

### `registry/default/sections/_types/process.ts`

```ts
import type { ImageAsset, SectionIntro } from "./common";

export type ProcessIcon =
  | "clipboard"
  | "handshake"
  | "home"
  | "key"
  | "search"
  | "sparkles";

export type ProcessContent = SectionIntro & {
  image?: ImageAsset;
  steps: {
    body: string;
    icon: ProcessIcon;
    title: string;
  }[];
};
```
