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 { usePlateEditor } from "platejs/react"import { BaseTocKit } from "@/components/editor/plugins/toc-base-kit"import { Badge } from "@/components/ui/badge"import { Card, CardContent } from "@/components/ui/card"export default function TocBaseKitDemo() { const editor = usePlateEditor({ plugins: [...BaseTocKit], }) const tocKeys = Object.keys(editor.plugins).filter((key) => key.includes("toc") ) return ( <Card className="w-full max-w-sm"> <CardContent className="flex flex-wrap gap-2"> {tocKeys.map((key) => ( <Badge key={key} variant="secondary"> {key} </Badge> ))} </CardContent> </Card> )}