Content, text and perks card


Install
npx shadcn add https://ui.klarhimmel.com/r/content-split-text.jsonDetailsAbout, usage, props and more
A heading and a few short paragraphs on the left, a bordered card on the right with up to four icon, title and description points.
Import
Import
- content/split-text
- About
- A heading and a few short paragraphs on the left, a bordered card on the right with up to four icon, title and description points. On a phone the card sits under the text and each icon sits above its title.
- Category
- Long-form text and timelines for about and policy pages. New project? Set it up once: /get-started/installation.
Notes
When to use it
A heading and a few short paragraphs on the left, with a bordered card at the right that holds up to four points with an icon, a title and a description. Use content-columns when there is no card.
Writing for it
- Write the paragraphs for one idea. Blank lines draw as paragraph gaps, so two or three short ones read best. - Use the card for what the reader gets, one point per icon, and keep each description to a sentence. - Pick icons that say what the point is, since they sit beside each title.
Watch out for
On a phone the card sits under the text and each icon moves above its title. More than four points cannot be added, so choose the four that matter.
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 | 'Name the place or the idea' | Text, up to 80 characters. |
body | string | 'Say in two sentences how the servic…' | Text, up to 900 characters. |
items | { icon, title, description }[] | 3 items | List of 1 to 4. Each item: icon ('zap' | 'shield' | 'layers' | 'globe' | 'sparkles' | 'clock' | 'code' | 'palette' | 'lock' | 'chart' | 'users' | 'mail' | 'heart' | 'rocket' | 'search' | 'settings' | 'check' | 'star' | 'book' | 'box' | 'cloud' | 'compass' | 'leaf' | 'gauge'), title, description. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |