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 { ProximitySidebar, type ProximitySection } from "@/components/ui/proximity-sidebar"const sections: ProximitySection[] = [ { id: "intro", label: "Introduction", level: 1 }, { id: "setup", label: "Setup", level: 2 }, { id: "installation", label: "Installation", level: 3 }, { id: "usage", label: "Usage", level: 3 }, { id: "props", label: "Props", level: 2 },]export default function ProximitySidebarDemo() { return ( <div className="flex h-[400px] w-full max-w-lg overflow-hidden"> <ProximitySidebar sections={sections} className="shrink-0" /> <div className="h-full flex-1 overflow-y-auto py-6 pr-6"> <section id="intro" className="min-h-[200px] space-y-2"> <p className="text-sm font-medium">Introduction</p> <p className="text-sm text-muted-foreground"> A compact sidebar that tracks where you are on the page as you scroll. </p> </section> <section id="setup" className="min-h-[200px] space-y-2"> <p className="text-sm font-medium">Setup</p> <p className="text-sm text-muted-foreground"> Place the sidebar next to your content and pass it the list of sections. </p> </section> <section id="installation" className="min-h-[200px] space-y-2"> <p className="text-sm font-medium">Installation</p> <p className="text-sm text-muted-foreground"> Add the component with the shadcn CLI, then import it into your page. </p> </section> <section id="usage" className="min-h-[200px] space-y-2"> <p className="text-sm font-medium">Usage</p> <p className="text-sm text-muted-foreground"> Hover near a dash to expand it, or click one to jump to that section. </p> </section> <section id="props" className="min-h-[200px] space-y-2"> <p className="text-sm font-medium">Props</p> <p className="text-sm text-muted-foreground"> Use sections, side, dir and activeOffset to adjust the layout and behavior. </p> </section> </div> </div> )}