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
/** @jsxImportSource preact */import { createElement, useEffect, useRef } from "react"import { render } from "preact"import { Bend } from "@/components/canvasui/Bend"const items = [ { title: "Welcome aboard", body: "Thanks for joining. Take a minute to finish setting up your profile." }, { title: "New comment on your post", body: "Olivia replied to your note about the spring release." }, { title: "Invoice paid", body: "Payment of $120.00 was received for March." }, { title: "Team meeting moved", body: "Monday standup now starts at 10:30 in the main room." }, { title: "Security update", body: "Two-factor authentication is now available for all accounts." }, { title: "Weekly summary", body: "Your team closed 14 tickets and merged 9 pull requests." },]function Feed() { return ( <Bend className="h-full w-full rounded-lg border"> <div className="flex flex-col gap-4 bg-background p-6"> {items.map((item, i) => ( <div key={item.title} className="flex flex-col gap-4"> <div className="flex flex-col gap-1"> <p className="text-sm font-medium">{item.title}</p> <p className="text-sm text-muted-foreground">{item.body}</p> </div> {i < items.length - 1 && <div className="h-px w-full bg-border" />} </div> ))} </div> </Bend> )}export default function BendDemo() { const hostRef = useRef<HTMLDivElement>(null) useEffect(() => { const host = hostRef.current if (!host) return render(<Feed />, host) return () => { render(null, host) } }, []) return createElement( "div", { className: "h-[400px] w-full max-w-md" }, createElement("div", { ref: hostRef, className: "h-full w-full" }), )}