Code
JSXPreview
Component for rendering and previewing JSX code with streaming support and error handling.
AI Draft
Draft workflow ready
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| jsx | string | - | JSX code to render |
| isStreaming | boolean | false | Whether JSX is being streamed |
| components | Record<string, Component> | - | Custom components available in JSX |
| bindings | Record<string, any> | - | Variable bindings for JSX |
| onError | (error: Error) => void | - | Callback on render error |
Import
import { JSXPreview, JSXPreviewContent, JSXPreviewError } from '@blastx/ui-ai';