Case studies, cards


Install
npx shadcn add @klarhimmel/case-study-cardDetailsAbout, usage, props and more
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
Import
- 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
Usage
The block in a page, with its default content (long lists shortened). Every prop is in the table below.
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.
| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | 'Name the topic' | Text, up to 60 characters. |
title | string | 'Say what the work changed for clien…' | Text, up to 120 characters. |
description | string | - | Text, up to 300 characters. Optional; empty is not rendered. |
featured | boolean | - | Optional; empty is not rendered. |
items | { client, figure, label, summary, link, media }[] | 3 items | List of 1 to 12. Each item: client, figure, label, summary, link, media. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |