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 { CodeBlockElementStatic } from "@/components/ui/code-block-node-static"const lines = [ "function greet(name: string) {", " return `Hello, ${name}!`;", "}", "", "console.log(greet(\"world\"));",]const element = { type: "code_block", lang: "typescript", children: [{ text: "" }],}const props = { element, editor: {}, attributes: { "data-slate-node": "element", ref: null }, children: lines.map((line, i) => ( <div key={i} data-slate-node="element"> {line || "\u00A0"} </div> )),} as anyexport default function CodeBlockDemo() { return ( <div className="w-full max-w-md"> <CodeBlockElementStatic {...props} /> </div> )}