Content, columns


Install
npx shadcn add @klarhimmel/content-columnsDetailsAbout, usage, props and more
Long text set in two newspaper columns under a wide headline, with an optional large pull quote between them. For a manifesto or an essay on a wide page.
Import
Import
- content/columns
- 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
Long text set in two newspaper-style columns under a big headline, with an optional pull quote in between. Right for a manifesto or an essay on a wide page; for a single reading column use content-prose.
Writing for it
- Each paragraph holds up to 700 characters and the block needs two to eight of them. Keep paragraphs near the same length so the two columns end at about the same height. - The quote (220 characters) is pushed to the right half on wide containers, so choose a sentence that works as a line on its own. - The title can reach 140 characters and is set very large on wide containers, so state the argument in one line instead of using a label.
Watch out for
Paragraphs are never split between columns, so the browser balances whole paragraphs. One very long paragraph and several short ones will leave the columns uneven, and on narrow containers it all collapses to a single column.
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 believes the r…' | Text, up to 140 characters. |
quote | string | 'Quote the belief behind the company…' | Text, up to 220 characters. |
attribution | string | 'Name a person, their role' | Text, up to 80 characters. |
paragraphs | string[] | 5 items | List of 2 to 8. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |