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 { FileTextIcon } from "lucide-react"import { Citation, Citations } from "@/components/agents/citations"export default function CitationsDemo() { const idPrefix = "answer-1" const citations = [ { id: "a", title: "Rules of Hooks", domain: "React docs", icon: <FileTextIcon /> }, { id: "b", title: "useState reference", domain: "React docs", icon: <FileTextIcon /> }, { id: "c", title: "Using the State Hook", domain: "MDN Web Docs", icon: <FileTextIcon /> }, ] return ( <div className="w-full max-w-md space-y-3 text-sm leading-relaxed"> <p> Hooks let function components hold state and run side effects. <Citation citationId="a" index={1} idPrefix={idPrefix} /> </p> <p> The state setter returns a new value that triggers a re-render. <Citation citationId="b" index={2} idPrefix={idPrefix} /> </p> <p> Hooks must be called at the top level of a component. <Citation citationId="a" index={1} idPrefix={idPrefix} /> <Citation citationId="c" index={3} idPrefix={idPrefix} /> </p> <Citations citations={citations} idPrefix={idPrefix} defaultOpen /> </div> )}