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 * as React from "react"import { CopilotPlugin } from "@platejs/ai/react"import { Plate, PlateContent, PlateElement, usePlateEditor, type PlateElementProps } from "platejs/react"import { GhostText } from "@/components/ui/ghost-text"function ParagraphElement(props: PlateElementProps) { return ( <PlateElement {...props} as="p"> {props.children} <GhostText /> </PlateElement> )}export default function GhostTextDemo() { const editor = usePlateEditor({ plugins: [ CopilotPlugin.configure({ options: { suggestionText: " will get back to you shortly.", }, }), ], components: { p: ParagraphElement, }, value: [ { id: "demo-paragraph", type: "p", children: [{ text: "Thanks for reaching out, we" }], }, ], }) return ( <Plate editor={editor}> <PlateContent className="w-full max-w-md rounded-md border p-4 text-sm" /> </Plate> )}