Skip to content
Klarhimmel UI

About, timeline

About, timeline previewAbout, timeline preview

Install

npx shadcn add @klarhimmel/about-timeline
DetailsAbout, usage, props and more

Company milestones by year: a heading and lead, then a vertical list of years with a title and a few lines.

Import

Import

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

Company milestones listed by year on a narrow page column, with a heading and lead above. Use it on an about page; for a process rather than history, steps-timeline is the closer match.

Writing for it

- The year field holds only 12 characters, so write '2019' or '2019-21', not a sentence. It is drawn in the accent colour as the row anchor. - Each entry has an 80 character title and a 300 character description. Name what happened and what it changed, with a number if you have one. - The lead (300 characters) sits under the title and should say why this history matters to the reader, not repeat the first row.

Watch out for

The year column is a fixed seven rem wide on wider containers, and the text in it does not wrap into a new line nicely. A long label like 'Spring 2019' fits, but a range with words will push into the title.

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 AboutTimeline from '@/components/klarhimmel/blocks/about-timeline';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <AboutTimeline props={{
          "eyebrow": "Name the section",
          "title": "Say how the story unfolded, in a short line",
          "lead": "Say in one sentence how the company has grown.",
          "items": [
            {
              "year": "0000",
              "title": "Name the first moment",
              "description": "Say who started it and what they made, in one sentence."
            },
            {
              "year": "0000",
              "title": "Name the second moment",
              "description": "Say who first used it and what they asked for, in one sentence."
            },
            {
              "year": "0000",
              "title": "Name the third moment",
              "description": "Say what was added and how the team changed, in one sentence."
            },
            {
              "year": "0000",
              "title": "Name the latest",
              "description": "Say what changed most and how it feels now, in one sentence."
            }
          ]
        }} />
      </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 how the story unfolded, in a sh…'Text, up to 120 characters.
leadstring'Say in one sentence how the company…'Text, up to 300 characters.
items{ year, title, description }[]4 itemsList of 1 to 8. Each item: year, title, description.
headingLevel'1' | '2'-One of '1', '2'. Optional; empty is not rendered.