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 { useRef } from "react"import ScrollProgress from "@/components/smoothui/scroll-progress/index"import { Card, CardContent } from "@/components/ui/card"export default function ScrollProgressDemo() { const scrollRef = useRef<HTMLDivElement>(null) return ( <Card className="w-full max-w-md overflow-hidden p-0"> <CardContent className="p-0"> <div ref={scrollRef} className="h-72 overflow-y-auto"> <ScrollProgress container={scrollRef} variant="bar" position="top" thickness={4} className="bg-background px-4 pt-3 pb-2" /> <div className="space-y-4 px-4 pb-6 text-sm leading-relaxed"> <p> Scroll through this article and the bar at the top fills up to show how much of it you have read. </p> <p> Good reading tools keep the progress visible without getting in the way, so the indicator stays pinned while the text moves underneath it. </p> <p> Each paragraph adds a little more length, giving the page enough room to scroll so the progress value changes smoothly as you move down. </p> <p> Keep going to see the bar reach the end. Small details like a soft spring and a gradient edge make the motion feel calm rather than mechanical. </p> <p> Reading progress is most useful for long pages such as guides, documentation, and essays, where knowing how far you have to go helps you plan your time. </p> <p> You have reached the final paragraph. The indicator should now be full. </p> </div> </div> </CardContent> </Card> )}