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 { ScrollProgress } from "@/components/ui/scroll-progress"export default function ScrollProgressDemo() { return ( <div className="relative w-full max-w-md overflow-hidden rounded-md border"> <ScrollProgress className="absolute inset-x-0 top-0 z-10" /> <div className="h-72 overflow-y-auto p-6 text-sm leading-relaxed"> <div className="flex flex-col gap-4"> <p>A reading indicator shows the reader how far they have travelled through an article. It fills as they scroll and gives a sense of how much is left.</p> <p>Pointing the bar at the article itself means it reaches the end when the last line arrives, even if the page continues with related posts and comments below.</p> <p>Progress is measured against the scrolling container, so it also works inside app shells where the main panel scrolls and the window stays still.</p> <p>When the content fits on screen with no scrolling needed, the bar reads as complete, since everything there is to read is already visible.</p> <p>The bar is decorative. Screen reader users already get position information from the scrollbar, so the indicator stays out of their way.</p> <p>Scroll down to see the bar fill as you move through this text.</p> <p>Keep scrolling until the bar reaches the right edge. That marks the end of the article.</p> </div> </div> </div> )}