Progress & Gamification
A floating sidebar of section links that follows the reader down the page and highlights the current section using IntersectionObserver. Great for long-form articles, docs, product story pages, and any content long enough to need orientation.
Live preview
No extra dependencies. React 18+ and Tailwind CSS v3+ assumed. Save as StickyTocSidebar.tsx.
Paste the prompt into the tool you already use. Each version is written specifically for that tool, matched to the same design constraints so the output stays consistent.
Build components/StickyTocSidebar.tsx as a client component. Aside hidden sm:block with a sticky top-6 inner div. IntersectionObserver watches all sections with matching ids (rootMargin -40% 0px -55% 0px) and sets active state. Nav renders a flex-col of anchor links (12px medium tracking-tight); active link is font-semibold text-black, inactive is text-[#9a9a9a] hover:text-black. Props: sections (array of {id, label}). Single default export.Progress & Gamification
Reading Progress Rail (Sidebar with Read Time)
Floating reading progress rail for React article pages, shows percent complete and estimated read time.
Progress & Gamification
Scroll Progress Bar (Top of Page)
Fixed top scroll progress bar for React and Next.js pages, tracks page scroll with a thin coloured line.
Progress & Gamification
Onboarding Progress Bar (Multi-Step Numbered)
Multi-step onboarding progress bar for React signup flows, product setup wizards, and checkout funnels.
Copy the source file from the "Copy code" button and save it into your components folder. Add any listed dependencies (React 18 or later and Tailwind CSS v3 or later are always required, plus framer-motion or gradflow if the component lists them). Import and render the component wherever you want it. Every prop is optional and defaulted.
Yes. Every component takes props for its content (headline, subtitle, image URL, CTA, and so on) and uses Tailwind classes throughout, so you can restyle without touching the logic. For deeper design changes, paste the prompt into Claude Code, Cursor, Lovable, Replit, or Codex and describe your brand tokens, spacing, or motion tweaks.
Yes. Everything on this page is free to copy, adapt, and ship in commercial projects. No attribution required. If you post a public showcase we always appreciate a link back.
All five prompts produce the same design. Claude Code and Codex are best when you want the component slotted into a project with existing conventions. Cursor is ideal for editing inside your IDE with the file open. Lovable and Replit spin up a fresh preview fastest, useful for a quick play.
Yes. The source files are plain React 18 client components. They run on any framework that supports React 18 and Tailwind CSS v3. If a component needs the "use client" directive (all of them do here, since they use hooks), keep the directive at the top of the file when you paste.