Content, prose


Install
npx shadcn add @klarhimmel/content-proseDetailsAbout, usage, props and more
A reading column: title, lead paragraph, then headed sections of body text. For about pages and articles.
Import
Import
- content/prose
- 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 single reading column: title, lead paragraph, then up to six headed sections of body text. It suits about pages and articles; use content-columns for a wide essay and content-legal when readers need a contents list.
Writing for it
- The lead (400 characters) is set larger than the body, so write it as the summary a person would read and stop at. - Section bodies hold 1500 characters and keep their line breaks, so you can separate two short paragraphs inside one section with a blank line. - Section headings (100 characters) are h3 elements under the title. Make them statements that tell the reader what the section decides, not just 'Overview'.
Watch out for
There are no lists, images or links inside the body text. If you need any of those, split the content over several blocks instead of forcing markup into a section body.
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. |
title | string | 'Say what the company stands for' | Text, up to 140 characters. |
lead | string | 'Say in one sentence who started the…' | Text, up to 400 characters. Optional; empty is not rendered. |
sections | { heading, body, media, button }[] | 3 items | List of 1 to 6. Each item: heading (optional), body, media (optional), button (optional). |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |