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 { JSXPreview, JSXPreviewContent, JSXPreviewError,} from "@/components/ai-elements/jsx-preview"export default function JSXPreviewDemo() { const jsx = `<div className="rounded-xl border bg-card p-4 shadow-sm"> <div className="flex items-center justify-between"> <div className="flex items-center gap-3"> <div className="flex size-10 items-center justify-center rounded-full bg-primary/10 text-sm font-semibold text-primary">AM</div> <div> <p className="font-medium">Alex Morgan</p> <p className="text-sm text-muted-foreground">Product designer</p> </div> </div> <span className="rounded-full bg-emerald-500/10 px-2.5 py-1 text-xs font-medium text-emerald-600">Available</span> </div> <div className="mt-4 rounded-lg bg-muted/50 p-3"> <p className="text-sm font-medium">Design review</p> <p className="mt-1 text-sm text-muted-foreground">The new dashboard concepts are ready for feedback.</p> </div></div>` return ( <JSXPreview jsx={jsx} className="w-full max-w-md"> <JSXPreviewContent /> <JSXPreviewError /> </JSXPreview> )}