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 { FormSection, SaveBar, useSimpleForm } from '@/components/dashboardblocks/forms'import { Input } from '@/components/ui/input'import { Label } from '@/components/ui/label'export default function FormsDemo() { const form = useSimpleForm({ defaultValues: { name: 'Olivia Martin', email: '' }, validate: ({ name, email }) => ({ name: name.trim() ? undefined : 'Name is required', email: email.includes('@') ? undefined : 'Enter a valid email', }), onSubmit: (values) => { console.log(values) }, }) return ( <form onSubmit={form.submit} noValidate className='w-full max-w-lg'> <FormSection title='Profile' description='Shown on your account.'> <div className='grid gap-4'> <div className='grid gap-2'> <Label htmlFor={form.getId('name')}>Name</Label> <Input {...form.field('name')} placeholder='Your name' /> {form.errors.name && <p className='text-destructive text-sm'>{form.errors.name}</p>} </div> <div className='grid gap-2'> <Label htmlFor={form.getId('email')}>Email</Label> <Input {...form.field('email')} type='email' placeholder='m@example.com' /> {form.errors.email && <p className='text-destructive text-sm'>{form.errors.email}</p>} </div> </div> </FormSection> <SaveBar isDirty={form.isDirty} isSubmitting={form.isSubmitting} onDiscard={() => form.reset()} /> </form> )}