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 { TablePlugin, TableRowPlugin, TableCellPlugin, TableCellHeaderPlugin,} from '@platejs/table/react';import { Plate, PlateContent, usePlateEditor } from 'platejs/react';import { TableElement, TableRowElement, TableCellElement, TableCellHeaderElement,} from '@/components/ui/table-node';const plugins = [ TablePlugin.withComponent(TableElement), TableRowPlugin.withComponent(TableRowElement), TableCellPlugin.withComponent(TableCellElement), TableCellHeaderPlugin.withComponent(TableCellHeaderElement),];const value = [ { type: 'table', children: [ { type: 'tr', children: [ { type: 'th', children: [{ text: 'Invoice' }] }, { type: 'th', children: [{ text: 'Status' }] }, { type: 'th', children: [{ text: 'Amount' }] }, ], }, { type: 'tr', children: [ { type: 'td', children: [{ text: 'INV-001' }] }, { type: 'td', children: [{ text: 'Paid' }] }, { type: 'td', children: [{ text: '$250.00' }] }, ], }, { type: 'tr', children: [ { type: 'td', children: [{ text: 'INV-002' }] }, { type: 'td', children: [{ text: 'Pending' }] }, { type: 'td', children: [{ text: '$150.00' }] }, ], }, { type: 'tr', children: [ { type: 'td', children: [{ text: 'INV-003' }] }, { type: 'td', children: [{ text: 'Unpaid' }] }, { type: 'td', children: [{ text: '$350.00' }] }, ], }, ], },];export default function TableNodeDemo() { const editor = usePlateEditor({ plugins, value }); return ( <Plate editor={editor}> <PlateContent className='w-full max-w-lg' /> </Plate> );}