Case Study Card Grid

Grid of case study cards

Marketing BlockCase Studies

Overview

Renders an array of case study cards in a configurable column grid. Each card supports a company logo, a key metric highlight, excerpt text, and an industry badge.

Usage

import { CaseStudyCardGrid } from "@leanicon/web-builder-library";

Default

Three-column grid with all card fields populated: logo, headline, metric, excerpt, and industry tag.

Two columns

Set columns={2} for a narrower layout.

One column

Set columns={1} for a single stacked layout.

Without logos

Cards render without a company logo when companyLogo is omitted.

Without metrics

The metric highlight is hidden when metric is omitted from cards.

Without industry tags

Industry badge is hidden when industryTag is omitted from cards.

Minimal cards

Only the required fields: headline, excerpt, and href. No logo, metric, or industry tag.

Single study

A single card in a one-column layout.

Single study in three-column grid

A single card placed in a three-column grid — useful for seeing how the grid handles sparse content.

With animation

Cards animate in with a staggered slide-up effect via the animation prop.

Dark mode

Two columns — dark mode

One column — dark mode

Minimal cards — dark mode

With animation — dark mode

Props

Prop

Type

Default

Description

studies

CaseStudyCard[]

—

Array of case study cards (required)

columns

1 | 2 | 3

3

Number of grid columns

animation

CaseStudyCardGridAnimation

—

Animation config for card entrance

colorScheme

"light" | "dark"

—

Force light or dark mode

className

string

—

Additional CSS classes on root

CaseStudyCard

Prop

Type

Description

headline

string

Card title — rendered as a link to href

excerpt

string

Short summary text

href

string

Link destination for the card

companyLogo

ImageProps?

Optional company logo image

metric

{ value: string; label: string }?

Optional key metric highlight

industryTag

string?

Optional industry badge

CaseStudyCardGridAnimation

Prop

Type

Description

cards

AnimationConfig?

Animation config (type, duration, stagger, once)

Notes

  • Dark mode: pass colorScheme="dark" or place inside a .dark ancestor.
  • Animation types: "fade", "slide-up", "slide-down", "scale", "none".
  • Animation is disabled automatically when the user prefers reduced motion.

Props

NameTypeDefaultRequiredDescription
studiesCaseStudyCard[]—Yes
columnsenum3No
animationCaseStudyCardGridAnimation—No
colorSchemeenum—No
classNamestring—No