ham7a311

Thread Stepper

Navigation 5

About

A horizontal multi-step progress indicator drawn as a thread running through beads, used for wizards and multi-step forms where users can click back to a completed step.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Thread Stepper to your project and fits it to your theme.

Code

How Thread Stepper is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import ThreadStepper from "@/components/ui/thread-stepper";
import { useState } from "react";

const STEPS = [
  { id: "account", title: "Account", hint: "Email and password" },
  { id: "profile", title: "Profile", hint: "Tell us about you" },
  { id: "team", title: "Team", hint: "Invite colleagues" },
  { id: "launch", title: "Launch", hint: "Review and go" },
];

export default function Demo() {
  const [i, setI] = useState(1);
  return (
    <div className="flex min-h-full w-full flex-col items-center justify-center gap-10 bg-[#0b080d] p-8 text-[#efe8dc]">
      <div className="w-full max-w-xl">
        <ThreadStepper steps={STEPS} current={i} onChange={setI} />
      </div>
      <div className="flex gap-3">
        <button
          type="button"
          onClick={() => setI((n) => Math.max(0, n - 1))}
          className="h-10 rounded-md border border-white/15 px-4 text-sm text-[#efe8dc] hover:border-white/30 disabled:opacity-40"
          disabled={i === 0}
        >
          Back
        </button>
        <button
          type="button"
          onClick={() => setI((n) => Math.min(STEPS.length, n + 1))}
          className="h-10 rounded-md bg-[#efe8dc] px-4 text-sm font-medium text-[#0b080d] disabled:opacity-40"
          disabled={i >= STEPS.length - 1}
        >
          Continue
        </button>
      </div>
    </div>
  );
}

More by ham7a311

View all
  • Route Globe

    Route Globe

    70
  • Wave Mesh

    Wave Mesh

    65
  • Glass Tiles

    Glass Tiles

    56
  • Glyph Swell

    Glyph Swell

    23
  • Orbit Ring Stats

    Orbit Ring Stats

    19
  • Ask Bar

    Ask Bar

    18
  • Streak Field Stats

    Streak Field Stats

    17
  • Glass Carousel

    Glass Carousel

    17

More in Navigation

View all
  • Sidebar

    Sidebar

    286
  • Navbar

    Navbar

    1
  • Tabs

    Tabs

    34
  • Oversized 404 Numeral

    Oversized 404 Numeral

    57
  • Breadrcrumb

    Breadrcrumb

    8
  • Pagination

    Pagination

    91
  • Sidebar

    Sidebar

    348
  • Pagination

    Pagination

    15