Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { RefObject, useRef } from "react"import { ScrollProgress } from "@/components/ui/scroll-progress"const paragraphs = [ "Scroll through this panel to see the progress bar at the top fill up as you move down the content.", "The bar tracks the scroll position of the container it is bound to, not the whole page.", "Progress is smoothed with a spring so the motion feels natural even when scrolling quickly.", "Keep scrolling. The indicator reaches the full width once you arrive at the bottom of the text.", "Long articles, documentation, and changelogs all benefit from a simple reading progress indicator.", "You can change the color with a utility class, for example bg-primary or bg-emerald-500.", "Thanks for reading to the end. The bar is now fully filled.",]export default function ScrollProgressDemo() { const containerRef: RefObject<HTMLDivElement> = useRef<HTMLDivElement>(null!) return ( <div className="relative w-full max-w-md overflow-hidden rounded-md border"> <ScrollProgress containerRef={containerRef} className="absolute bg-primary" /> <div ref={containerRef} className="h-64 space-y-4 overflow-y-auto p-4 text-sm"> {paragraphs.map((text, i) => ( <p key={i}>{text}</p> ))} </div> </div> )}