Case-study, problem solution


Install
npx shadcn add https://ui.klarhimmel.com/r/case-study-problem-solution.jsonDetailsAbout, usage, props and more
A centred heading and line, then a framed picture on the left and short titled parts with one button on the right; on a phone the picture sits above the text.
Import
Import
- case-study/problem-solution
- 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 centred heading and line, then a framed picture on the left and short titled parts on the right with one button. Use case-study-story for a longer narrative and case-study-card for a row of customers.
Writing for it
- Write each part as a small heading over a paragraph, such as the problem, the work and the result. - Choose a picture of the outcome in use, since it sits framed beside the text. - Keep the button to one action, such as reading the full story.
Watch out for
On a phone the picture sits above the text, so the parts start below it. A picture with small details loses them at the narrow size.
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 |
|---|---|---|---|
title | string | 'Say what the visitor will see in ac…' | Text, up to 60 characters. |
description | string | 'Say in one line what changes for th…' | Text, up to 120 characters. |
media | Media | {…} | See the type. |
caption | string | 'Add a short note on the picture' | Text, up to 40 characters. |
parts | { title, body }[] | 3 items | List of 2 to 4. Each item: title, body. |
cta | Link | {…} | See the type. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |