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 { createStaticEditor } from "platejs/static"import { BaseTogglePlugin } from "@platejs/toggle"import { ToggleElementStatic } from "@/components/ui/toggle-node-static"const editor = createStaticEditor({ plugins: [BaseTogglePlugin],})export default function ToggleNodeDemo() { const element = { type: "toggle", id: "toggle-1", children: [{ text: "Shipping details" }], } as any return ( <div className="w-full max-w-md"> <ToggleElementStatic editor={editor as any} element={element} attributes={{ "data-slate-node": "element" } as any} > <div className="text-sm font-medium">Shipping details</div> <p className="pt-1 text-sm text-muted-foreground"> Orders ship within two business days through trusted courier partners. </p> </ToggleElementStatic> </div> )}