Staaarter

Case Study Hero

A case study header with project metadata grid, service tags, and featured image. Perfect for agency portfolio pages showcasing client work details.

By Staaarter Team
Agency
Docs
Live preview

Docs

Installation

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

npx shadcn add https://staaarter.com/r/case-study-hero.json

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

Usage

The file also exports agency10Demo, 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 { Agency10, agency10Demo } from "@/components/blocks/agency/agency10";

export default function Page() {
  return <Agency10 {...agency10Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringnoneSmall label above the heading, e.g. "Case study".
headingstringnoneLarge project title.
metaMetaField[]noneMetadata pairs shown in a 2/4-column grid, e.g. Client, Year, Industry, Duration.
servicesstring[]noneRow of outline badges naming the services delivered on the project.
imageMediaSlotImagenoneLarge featured image below the metadata grid, rendered at a 16:9 aspect ratio.
classNamestringnoneExtra classes for the outer section element.

Types

type MetaField = {
  label: string;
  value: string;
};

Behavior notes

  • Purely presentational: the metadata grid, service tags, and image are all static demo content with no live data source.
  • The featured image uses a fixed 16:9 aspect ratio via MediaSlot; there is no lightbox or click-to-expand behavior.