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
'use client';import { Plate, PlateContent, usePlateEditor } from 'platejs/react';import { TableKit } from '@/components/editor/plugins/table-kit';const cell = (text: string, header = false) => ({ type: header ? 'th' : 'td', children: [{ type: 'p', children: [{ text }] }],});const initialValue = [ { type: 'table', children: [ { type: 'tr', children: [cell('Region', true), cell('Q1', true), cell('Q2', true)] }, { type: 'tr', children: [cell('North'), cell('120'), cell('135')] }, { type: 'tr', children: [cell('South'), cell('98'), cell('110')] }, ], }, { type: 'p', children: [{ text: '' }] },];export default function TableKitDemo() { const editor = usePlateEditor({ plugins: [...TableKit], value: initialValue, }); return ( <Plate editor={editor}> <PlateContent className='w-full max-w-lg rounded-md border p-4 text-sm' placeholder='Type here...' /> </Plate> );}