# 8-bit Timeline 2

> Horizontal progress steps with checkpoints.

A shadcn/ui block from the [@8bitcn](https://www.8bitcn.com) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/8bitcn/timeline2).

- Page, with a live preview: https://shadcn.exchange/r/8bitcn/timeline2
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/8bitcn/timeline2-light-943ed329184dcc6b.png
- Registry item: https://www.8bitcn.com/r/timeline2.json
- Categories: timeline
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://www.8bitcn.com/r/timeline2.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Files

### `components/ui/8bit/blocks/timeline2.tsx`

```tsx
import type { ReactNode } from "react";

import { cn } from "@/lib/utils";

import "@/components/ui/8bit/styles/retro.css";

export interface TimelineStep {
  description: string;
  icon: ReactNode;
  title: string;
}

interface Timeline2Props {
  className?: string;
  description?: string;
  steps?: TimelineStep[];
  title?: string;
}

const defaultSteps: TimelineStep[] = [
  {
    icon: "I",
    title: "Design",
    description: "Plan your layout and pick your blocks.",
  },
  {
    icon: "II",
    title: "Develop",
    description: "Install components and wire them up.",
  },
  {
    icon: "III",
    title: "Test",
    description: "Check responsiveness and dark mode.",
  },
  {
    icon: "IV",
    title: "Deploy",
    description: "Push to production. Game over (in a good way).",
  },
];

export default function Timeline2({
  title = "The Quest Line",
  description = "Your path from idea to launch",
  steps = defaultSteps,
  className,
}: Timeline2Props) {
  return (
    <section className={cn("w-full px-4 py-16", className)}>
      <div className="mx-auto max-w-4xl">
        {(title || description) && (
          <div className="mb-10 text-center">
            {title && (
              <h2 className="retro mb-3 font-bold text-2xl tracking-tight md:text-3xl">
                {title}
              </h2>
            )}
            {description && (
              <p className="retro text-muted-foreground text-[9px]">{description}</p>
            )}
          </div>
        )}

        {/* Horizontal on desktop, vertical on mobile */}
        <div className="relative flex flex-col gap-8 md:flex-row md:gap-0">
          {/* Horizontal line (desktop) */}
          <div className="absolute top-7 right-0 left-0 hidden h-0 border-t-2 border-dashed border-border md:block" />

          {steps.map((step, idx) => (
            <div
              className="relative flex flex-1 flex-col items-center text-center"
              key={step.title}
            >
              {/* Checkpoint */}
              <div className="retro relative z-10 mb-4 flex size-14 items-center justify-center border-2 border-primary bg-background font-bold">
                {step.icon}
              </div>

              <h3 className="retro mb-1 font-bold text-xs">{step.title}</h3>
              <p className="max-w-[160px] text-muted-foreground text-[10px] leading-relaxed">
                {step.description}
              </p>
            </div>
          ))}
        </div>
      </div>
    </section>
  );
}
```

### `components/ui/8bit/styles/retro.css`

```css
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

.retro {
  font-family:
    "Press Start 2P",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.5;
  letter-spacing: 0.5px;
}

.pixelated {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
```
