Render plain text with text(), subtle metadata labels with caption(), and full GitHub-Flavored Markdown (sanitized with rehype-sanitize) with markdown_text().
text()
caption()
rehype-sanitize
markdown_text()
<ComponentPreview title="Text, Caption & Markdown">
[
{"type": "text", "content": "PraisonAIUI blocks adapt automatically to light mode, dark mode, and custom theme presets."},
{"type": "caption", "text": "Synced 12 seconds ago via /api/pages/overview"},
{"type": "markdown_text", "content": "### Release Highlights\n- Zero-code YAML and Python @aiui.page parity\n- Interactive A2UI surfaces and live ComponentPreview blocks"}
@aiui.page
A2UI
ComponentPreview
]
</ComponentPreview>
<Tabs>
<Tab title="Python">
</Tab>
<Tab title="YAML">
</Tabs>
| Component | Parameter | Description |
|---|---|---|
| text | content | Plain escaped text paragraph. |
text
content
| caption | text | Small muted secondary text. |
caption
| markdown_text | content, toc, title | Sanitized Markdown renderer; set toc=True for an interactive table of contents. |
markdown_text
toc
title
toc=True