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 { DownloadIcon } from "lucide-react"import { createPlateEditor } from "platejs/react"import { DocxExportKit } from "@/components/editor/plugins/docx-export-kit"import { Button } from "@/components/ui/button"import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle,} from "@/components/ui/card"import { Label } from "@/components/ui/label"import { Switch } from "@/components/ui/switch"const editor = createPlateEditor({ plugins: [...DocxExportKit],})export default function DocxExportKitDemo() { return ( <Card className="w-full max-w-sm"> <CardHeader> <CardTitle>Export document</CardTitle> <CardDescription>Download this document as a Word file.</CardDescription> </CardHeader> <CardContent className="grid gap-4"> <div className="flex items-center justify-between"> <Label htmlFor="include-toc">Include table of contents</Label> <Switch id="include-toc" defaultChecked /> </div> <div className="flex items-center justify-between"> <Label htmlFor="include-code">Include code blocks</Label> <Switch id="include-code" defaultChecked /> </div> </CardContent> <CardFooter> <Button className="w-full" data-editor-ready={editor ? "true" : "false"}> <DownloadIcon /> Export .docx </Button> </CardFooter> </Card> )}