About, timeline


Install
npx shadcn add @klarhimmel/about-timelineDetailsAbout, 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
- 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.
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 how the story unfolded, in a sh…' | Text, up to 120 characters. |
lead | string | 'Say in one sentence how the company…' | Text, up to 300 characters. |
items | { year, title, description }[] | 4 items | List of 1 to 8. Each item: year, title, description. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |