# Steps, timeline

- **[Sections](/blocks/)**
- **[Steps](/blocks/steps/)**
- **Steps, timeline**

A vertical timeline of labelled steps with a connecting line and an optional main action under the last step. Process, onboarding or roadmap.

## Import

- **CLI**

  ```
  npx shadcn add @klarhimmel/steps-timeline
  ```
- **Import**

  ```
  import Block from '@/components/klarhimmel/blocks/steps-timeline';
  ```

Also called

- steps/timeline

- **Category**: How it works, in numbered steps or a timeline. New project? Set it up once: /get-started/installation.

## Notes

- **When to use it**: A vertical, labelled timeline with a sticky heading on the left, for onboarding, a delivery process or a roadmap with up to eight stages. For three to five very short steps `steps-horizontal` is quicker to scan, and for company history by year use `about-timeline`.
- **Writing for it**: - The label (30 characters) is the stage marker, like 'Week 1' or 'Q3'. Keep the labels the same kind of thing all the way down, either times or phases, not a mix.
- A description may run to 240 characters and is drawn in a prose-width line, so one or two sentences on what the customer sees at that stage is enough.
- The heading is in a column of its own, so a title near the 120 character limit gets tall beside the list. Say the topic in a line and put the detail in the steps.
- **Watch out for**: There is no call to action in this block. If the process ends in a decision, put a `cta-minimal` or `cta-band` right after it, because the timeline just stops at the last item.

## Pairs well with

- **[Hero, minimal](/blocks/hero/minimal)**
- **[Steps, horizontal](/blocks/steps/horizontal)**
- **[Contact, booking](/blocks/contact/booking)**

## 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 StepsTimeline from '@/components/klarhimmel/blocks/steps-timeline';

export default function Section() {
  return (
    <Theme theme="brand">
      <BlockSurface>
        <StepsTimeline props={{
          "eyebrow": "Name the section",
          "title": "Say how the work runs, stage by stage",
          "description": "Say in one sentence how many stages there are and what each one ends with.",
          "items": [
            {
              "label": "Time span",
              "title": "Name stage one",
              "description": "Say what happens in the first stage and what the reader can see at its end."
            },
            {
              "label": "Time span",
              "title": "Name stage 2",
              "description": "Say what happens in the second stage and what the reader can see at its end."
            },
            {
              "label": "Time span",
              "title": "Name stage 3",
              "description": "Say what happens in the third stage and what the reader can see at its end."
            },
            {
              "label": "Time span",
              "title": "Name stage 4",
              "description": "Say what happens in the last stage and what is handed over."
            }
          ]
        }} />
      </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.

- **eyebrow**: Text, up to 60 characters.
- **title**: Text, up to 120 characters.
- **description**: Text, up to 300 characters.
- **items**: List of 1 to 8. Each item: label, title, description.
- **cta**: Optional; empty is not rendered.
- **headingLevel**: One of '1', '2'. Optional; empty is not rendered.

[Previous](/blocks/steps/numbered)

[Next](/blocks/content/timeline)
