Code

JSXPreview

Component for rendering and previewing JSX code with streaming support and error handling.

AI Draft

Draft workflow ready

Props

PropTypeDefaultDescription
jsxstring-JSX code to render
isStreamingbooleanfalseWhether JSX is being streamed
componentsRecord<string, Component>-Custom components available in JSX
bindingsRecord<string, any>-Variable bindings for JSX
onError(error: Error) => void-Callback on render error

Import

import { JSXPreview, JSXPreviewContent, JSXPreviewError } from '@blastx/ui-ai';