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 { ScrollspyAnchorLinks, type ScrollspyItem } from "@/components/scrollspy-anchor-links"const sections: ScrollspyItem[] = [ { id: "overview", label: "Overview" }, { id: "features", label: "Features" }, { id: "specs", label: "Specs" }, { id: "reviews", label: "Reviews" },]export default function ScrollspyAnchorLinksDemo() { const scrollRef = useRef<HTMLDivElement>(null) return ( <div ref={scrollRef} className="relative h-[360px] w-full max-w-lg overflow-y-auto rounded-md border"> <ScrollspyAnchorLinks items={sections} scrollRef={scrollRef} offset={60} theme="light" /> <section id="overview" className="min-h-[300px] space-y-2 p-6"> <p className="text-sm font-medium">Overview</p> <p className="text-sm text-muted-foreground">A compact tool for moving through a long product page.</p> </section> <section id="features" className="min-h-[300px] space-y-2 p-6"> <p className="text-sm font-medium">Features</p> <p className="text-sm text-muted-foreground">Highlights the section you are reading and keeps it in view.</p> </section> <section id="specs" className="min-h-[300px] space-y-2 p-6"> <p className="text-sm font-medium">Specs</p> <p className="text-sm text-muted-foreground">Weighs 240 grams and ships with a two year warranty.</p> </section> <section id="reviews" className="min-h-[300px] space-y-2 p-6"> <p className="text-sm font-medium">Reviews</p> <p className="text-sm text-muted-foreground">Customers rate it 4.8 out of 5 across 1,200 reviews.</p> </section> </div> )}