Staaarter

Use Case Image Cards

A feature section with a centered heading above a three-column grid of tall image cards. Each card is a full-card link: a photo fills the card with a bottom gradient scrim, title, description, and arrow indicator sit over it, and the photo zooms in slightly on hover.

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/use-case-image-cards.json

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

Usage

The file also exports feature121Demo, 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 { Feature121, feature121Demo } from "@/components/blocks/feature/feature121";

export default function Page() {
  return <Feature121 {...feature121Demo} />;
}

Props

PropTypeDefaultDescription
eyebrowstringundefinedSmall label above the heading; omitted entirely when unset.
headingstringnoneSection heading.
descriptionstringundefinedSupporting copy under the heading.
cardsFeature121Card[]noneImage cards, each a full-card link.
classNamestringundefinedExtra classes for the outer section element.

Types

interface Feature121Card {
  title: string;
  description: string;
  image: { src: string; alt: string };
  href: string;
}

Behavior notes

  • Plain Server Component. The hover zoom (`group-hover:scale-105` on the image) and arrow-shift are pure CSS transitions, there is no click or hover state tracked in JavaScript.
  • Each card is a real Next.js `<Link>` wrapping the whole card, not a decorative click target, so it is keyboard-focusable and works with `href="#"` placeholders exactly like this category's other CTA links.
  • The bottom gradient scrim (`bg-gradient-to-t from-background/95`) exists purely to keep the overlaid title/description legible over an arbitrary photo, it does not change based on the image supplied.