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 { useState } from "react"import { createPlateEditor } from "platejs/react"import { LineHeightKit } from "@/components/editor/plugins/line-height-kit"import { Button } from "@/components/ui/button"import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"import { Label } from "@/components/ui/label"const LINE_HEIGHTS = [1, 1.2, 1.5, 2, 3]export default function LineHeightDemo() { const editor = createPlateEditor({ plugins: [...LineHeightKit] }) const [lineHeight, setLineHeight] = useState(1.5) return ( <Card className="w-full max-w-lg"> <CardHeader> <CardTitle>Line height</CardTitle> </CardHeader> <CardContent className="grid gap-4"> <div className="flex flex-wrap items-center gap-2"> <Label className="mr-2">Spacing</Label> {LINE_HEIGHTS.map((value) => ( <Button key={value} size="sm" variant={lineHeight === value ? "default" : "outline"} onClick={() => setLineHeight(value)} > {value} </Button> ))} </div> <p data-plugins={editor.plugins.length} className="text-sm" style={{ lineHeight }} > Good typography gives paragraphs room to breathe. Adjust the spacing to find the density that reads best for your content. </p> </CardContent> </Card> )}