JsxPreview

@Composable
fun JsxPreview(jsx: String, modifier: Modifier = Modifier, bindings: JsonObject = JsonObject(emptyMap()), catalog: A2uiCatalog = A2uiCatalog.Basic, onAction: (A2uiAction) -> Unit = {})(source)

Renders model-written JSX natively (AI Elements jsx-preview): the JSX compiles onto A2UI components and renders with catalog, while it streams. bindings are the values {name} can read; inputs write back into them locally, and handlers such as onClick={save} arrive in onAction (name save, with the current data model).