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 type { ComponentProps } from 'react'import { ColumnElementStatic, ColumnGroupElementStatic } from '@/components/ui/column-node-static'type ColumnProps = ComponentProps<typeof ColumnElementStatic>type GroupProps = ComponentProps<typeof ColumnGroupElementStatic>function column(width: string, text: string) { const element = { type: 'column', width, children: [{ type: 'p', children: [{ text }] }], } const props = { element, attributes: { 'data-slate-node': 'element' }, children: <p className='text-sm'>{text}</p>, } as unknown as ColumnProps return <ColumnElementStatic key={text} {...props} />}export default function ColumnNodeDemo() { const element = { type: 'column_group', children: [ { type: 'column', width: '70%', children: [] }, { type: 'column', width: '30%', children: [] }, ], } const props = { element, attributes: { 'data-slate-node': 'element' }, children: [ column('70%', 'Main column. Write the main content of your page here.'), column('30%', 'Sidebar. Related links.'), ], } as unknown as GroupProps return ( <div className='w-full max-w-lg'> <ColumnGroupElementStatic {...props} /> </div> )}