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 { ArrowLeftIcon, ArrowRightIcon, RotateCwIcon } from 'lucide-react'import { WebPreview, WebPreviewBody, WebPreviewConsole, WebPreviewNavigation, WebPreviewNavigationButton, WebPreviewUrl,} from '@/mui-treasury/components/ai-web-preview/ai-web-preview'const html = '<html><body style="font-family:sans-serif;padding:24px"><p>Your app preview renders here.</p></body></html>'const src = 'data:text/html;charset=utf-8,' + encodeURIComponent(html)export default function WebPreviewDemo() { return ( <WebPreview defaultUrl='localhost:3000' sx={{ height: 400, maxWidth: 680 }}> <WebPreviewNavigation> <WebPreviewNavigationButton tooltip='Back' onClick={() => {}}> <ArrowLeftIcon className='size-4' /> </WebPreviewNavigationButton> <WebPreviewNavigationButton tooltip='Forward' onClick={() => {}}> <ArrowRightIcon className='size-4' /> </WebPreviewNavigationButton> <WebPreviewNavigationButton tooltip='Refresh' onClick={() => {}}> <RotateCwIcon className='size-4' /> </WebPreviewNavigationButton> <WebPreviewUrl /> </WebPreviewNavigation> <WebPreviewBody src={src} /> <WebPreviewConsole logs={[ { level: 'log', message: 'Page loaded', timestamp: new Date(0) }, { level: 'warn', message: 'Slow network response', timestamp: new Date(0) }, ]} /> </WebPreview> )}