Skip to content
Klarhimmel UI

Content, columns

Content, columns previewContent, columns preview

Install

npx shadcn add @klarhimmel/content-columns
DetailsAbout, 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

import Block from '@/components/klarhimmel/blocks/content-columns';
Also called
  • 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.

Usage

The block in a page, with its default content (long lists shortened). Every prop is in the table below.

section.tsx
import { Theme } from '@/components/klarhimmel/theme/style';
import { BlockSurface } from '@/components/klarhimmel/blocks/surface';
import ContentColumns from '@/components/klarhimmel/blocks/content-columns';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ContentColumns props={{
          "eyebrow": "Name the section",
          "title": "Say what the company believes the reader deserves",
          "quote": "Quote the belief behind the company in one sentence, in plain words.",
          "attribution": "Name a person, their role",
          "paragraphs": [
            "Say in two or three sentences what people in this field described to you when you first listened, and what that moment looked like for them. Keep it concrete.",
            "Say in two or three sentences why the tools they used did not fit them, and who those tools were really made for. Keep it plain and honest.",
            "Say in two or three sentences what you asked instead, and what the person on the front line needs to know first. Everything else can wait.",
            "Say in one or two sentences what that question shaped in the product: the defaults, the settings and the look.",
            "Say in one or two sentences what the product is not trying to be, and what it is instead for the reader."
          ]
        }} />
      </BlockSurface>
    </Theme>
  );
}

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.

PropTypeDefaultDescription
eyebrowstring'Name the section'Text, up to 60 characters.
titlestring'Say what the company believes the r…'Text, up to 140 characters.
quotestring'Quote the belief behind the company…'Text, up to 220 characters.
attributionstring'Name a person, their role'Text, up to 80 characters.
paragraphsstring[]5 itemsList of 2 to 8.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.