@mischief/scroll-to-top-buttonloading the log…
NO RECENT BUILD
Pipeline
  1. Docsusage, props, keywords
  2. Demosrc/demo.tsx
  3. Buildshadcn add → vite
  4. Capturelight, dark, motion
  5. 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 { useLayoutEffect, useRef } from "react"import { ScrollToTopButton } from "@/components/ui/scroll-to-top-button"const sections = [  "Getting started",  "Installation",  "Project structure",  "Configuration",  "Theming",  "Adding components",  "Forms and validation",  "Data fetching",  "Routing",  "Deployment",  "Troubleshooting",  "Changelog",]export default function ScrollToTopButtonDemo() {  const scrollRef = useRef<HTMLDivElement>(null)  // Start partway down so the button is already visible in the preview.  useLayoutEffect(() => {    if (scrollRef.current) scrollRef.current.scrollTop = 400  }, [])  return (    <div className="relative h-80 w-full max-w-md transform-gpu overflow-hidden rounded-lg border">      <div ref={scrollRef} className="h-full overflow-y-auto p-4">        <div className="grid gap-4">          {sections.map((title, index) => (            <div key={title} className="rounded-md border p-4">              <p className="text-sm font-medium">                {index + 1}. {title}              </p>              <p className="text-muted-foreground mt-1 text-sm">                A short overview of {title.toLowerCase()} for this project.              </p>            </div>          ))}        </div>      </div>      <ScrollToTopButton containerRef={scrollRef} />    </div>  )}