Staaarter

Horizontal Process Timeline

A connected left-to-right sequence of numbered project phases with a ruled timeline and step dots. A horizontal rule runs behind each phase's dot to visually connect the sequence.

By Staaarter Team
Agency
Docs
Live preview

Docs

Installation

A real shadcn registry command, not a copy-paste stand-in: it fetches this block plus its dependencies and any missing npm packages, and installs them straight into your project.

npx shadcn add https://staaarter.com/r/horizontal-process-timeline.json

Prefer not to use the CLI? Copy the source from the Code toggle above into src/components/blocks/agency/agency22.tsx instead.

Usage

The file also exports agency22Demo, the exact props behind the preview above. Spread it to get a working section in one line, then replace it with your own data.

import { Agency22, agency22Demo } from "@/components/blocks/agency/agency22";

export default function Page() {
  return <Agency22 {...agency22Demo} />;
}

Props

PropTypeDefaultDescription
headingReactNodenoneCentered section heading.
descriptionstringnoneOptional supporting copy under the heading.
phasesProcessPhase[]noneOrdered phases rendered left to right along the timeline.
classNamestringnoneExtra classes for the outer section element.

Types

type ProcessPhase = { number: string; title: string; description: string };

Behavior notes

  • The connecting line is a real absolutely-positioned horizontal rule sitting behind the step dots, not just an implied gap between columns.
  • The phase grid wraps to two columns below the sm breakpoint since a true single-row layout for 5 phases does not fit small screens; the connecting rule still spans the full width behind whatever wrapped layout results.
  • number is a plain string (e.g. "01"), not an auto-computed index, so the caller controls the exact digits shown.