Steps, timeline


Install
npx shadcn add @klarhimmel/steps-timelineDetailsAbout, usage, props and more
A vertical timeline of labelled steps with a connecting line and an optional main action under the last step. Process, onboarding or roadmap.
Import
Import
- 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
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 work runs, stage by sta…' | Text, up to 120 characters. |
description | string | 'Say in one sentence how many stages…' | Text, up to 300 characters. |
items | { label, title, description }[] | 4 items | List of 1 to 8. Each item: label, title, description. |
cta | Link | - | Optional; empty is not rendered. |
headingLevel | '1' | '2' | - | One of '1', '2'. Optional; empty is not rendered. |