Case study, story


Install
npx shadcn add @klarhimmel/case-study-storyDetailsAbout, usage, props and more
A narrative case study: headline, one wide photo, then two to four chapters side by side (Challenge, Approach, Result). Words first, no figure wall.
Import
Import
- case-study/story
- Category
- One customer story: the problem, the work, the result. New project? Set it up once: /get-started/installation.
Notes
When to use it
A narrative case study with a wide photo and two to four chapters side by side, such as Challenge, Approach and Result. Words come first here; use case-study-metrics if numbers should lead.
Writing for it
- Each chapter has a 30 character label, an 80 character title and 420 characters of text. Use the labels for the plot beats and the titles to state each one in a line. - The picture is cropped very wide, at 21 to 9, so pick a landscape photo with the subject in the middle band. - The client name (60 characters) is a small line over the title, and the title (140 characters) should be the outcome in plain words.
Watch out for
Three chapters become three columns and four chapters become four columns only on very wide containers, otherwise two. Chapter texts of 420 characters in four columns get tall and narrow, so keep them shorter there.
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 section' | Text, up to 60 characters. |
client | string | 'Name a client' | Text, up to 60 characters. |
title | string | 'Say how the client went from one st…' | Text, up to 140 characters. |
media | Media | {…} | See the type. |
chapters | { label, title, text }[] | 3 items | List of 2 to 4. Each item: label, title, text. |
link | Link | {…} | See the type. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |