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 { useEffect, useRef } from "react"import { h, render } from "preact"import { Magnify } from "@/components/canvasui/Magnify"export default function MagnifyDemo() { const containerRef = useRef<HTMLDivElement>(null) useEffect(() => { const container = containerRef.current if (!container) return render( h( Magnify, { className: "h-full w-full overflow-hidden rounded-lg border" }, h( "article", { className: "space-y-3 p-6" }, h("p", { className: "text-lg font-medium" }, "Hover to inspect. Click to send a ripple."), h( "p", { className: "text-sm text-muted-foreground" }, "The lens magnifies the page beneath the cursor while the HTML stays interactive." ) ) ), container ) return () => { render(null, container) } }, []) return <div ref={containerRef} className="h-96 w-full max-w-lg" />}