Skip to content
Klarhimmel UI

Content, statement

Content, statement previewContent, statement preview

Install

npx shadcn add https://ui.klarhimmel.com/r/content-statement.json
DetailsAbout, usage, props and more

One large statement of three or four lines, set left in a narrow measure on a tinted band: a pause between sections.

Import

Import

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

One large statement of three or four lines, set left in a narrow measure on a tinted band, as a pause between sections. Pick cta-minimal when the statement should end with an action.

Writing for it

- Write one sentence that could stand as a motto. It is drawn as the section heading, so it counts in the page outline. - Keep it to three or four lines at display size, which is roughly twenty words at most. - Place it between two dense sections, where the pause helps.

Watch out for

A statement with a clause too many wraps into five lines and loses its force. Because it is drawn as a heading, a page with several of them can confuse the outline.

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 ContentStatement from '@/components/klarhimmel/blocks/content-statement';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <ContentStatement props={{
          "title": "Say in one or two sentences the single point you want the reader to carry away, in plain words, as a claim they could repeat."
        }} />
      </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
titlestring'Say in one or two sentences the sin…'Text, up to 220 characters.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.