# Case studies, cards

- **[Sections](/blocks/)**
- **[Case study](/blocks/case-study/)**
- **Case studies, cards**

A collection of up to twelve project cards in a responsive three-column grid: image, client, a headline figure with its label, a short summary and a link.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/case-study-card
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/case-study-card';
  ```

Also called

- case-study/card

- **About**: A collection of up to twelve project cards in a responsive three-column grid: image, client, a headline figure with its label, a short summary and a link. featured makes the first one a full-width lead card with its picture beside the text.
- **Category**: One customer story: the problem, the work, the result. New project? Set it up once: /get-started/installation.

## Notes

- **When to use it**: Up to twelve project or result cards, each with an image, client, one headline figure and a link, in a responsive collection. Use `case-study-metrics` when a single customer deserves a whole section.
- **Writing for it**: - The figure holds 24 characters and the label beside it 60. Write '3x' with 'more bookings', so the two read as one phrase.
- The summary (240 characters) should say what was done, since the figure already says what came out of it.
- A card's link is hidden when its label is empty, so give every card a label if you want the same layout across all of them.
- **Watch out for**: The grid goes to one, two or three columns depending on how many items you add. With exactly two cards on a wide page they fill the width, so make sure the two images share the same crop.

## Pairs well with

- **[Logos strip](/blocks/logo-cloud/row)**
- **[Case study, story](/blocks/case-study/story)**
- **[Call to action, minimal](/blocks/cta/minimal)**

## Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx

```
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import CaseStudyCard from '@/components/klarhimmel/blocks/case-study-card';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <CaseStudyCard props={{
          "eyebrow": "Name the topic",
          "title": "Say what the work changed for clients",
          "items": [
            {
              "client": "Name a client",
              "figure": "00%",
              "label": "Name what improved",
              "summary": "Say what the client had before and what they have now, in one sentence.",
              "link": {
                "label": "Read more",
                "href": "#first"
              },
              "media": {
                "src": "/pictures/scr-pricing.avif",
                "alt": "A pricing page with three plans",
                "srcDark": "/pictures/scr-pricing-dark.avif"
              }
            },
            {
              "client": "Name a client",
              "figure": "0x",
              "label": "Name what improved",
              "summary": "Say what the client had before and what they have now, in one sentence.",
              "link": {
                "label": "Read more",
                "href": "#second"
              },
              "media": {
                "src": "/pictures/scr-card.avif",
                "alt": "A card with a title and a button",
                "srcDark": "/pictures/scr-card-dark.avif"
              }
            }
          ]
        }} />
      </BlockSurface>
    </Theme>
  );
}
```

## Props

The type, default and text limit of every prop. On a real page, over-limit text is kept and checkSections flags it (Installation, Check a page before you ship); this live preview shows the default until it fits. The panel above edits all props.

- **eyebrow**: Text, up to 60 characters.
- **title**: Text, up to 120 characters.
- **description**: Text, up to 300 characters. Optional; empty is not rendered.
- **featured**: Optional; empty is not rendered.
- **items**: List of 1 to 12. Each item: client, figure, label, summary, link, media.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/case-study/before-after)

[Next](/blocks/case-study/metrics)
