Package-level declarations
Functions
Link copied to clipboard
A code-block renderer that previews ``` ```jsx ``` fences in chat Markdown; register it with AiElementsRenderers(codeBlocks = mapOf("jsx" to jsxCodeBlocks(), "tsx" to jsxCodeBlocks())). The preview has a "Code" toggle to show the source.
Link copied to clipboard
@Composable
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).