Turn Python or YAML data into sortable tables, interactive theme-aware charts, KPI metrics, progress bars, and structured key-value views.
| Python builder | YAML type | What it renders |
type
|---|---|---|
| aiui.metric(label, *, value, delta, delta_color, caption, sparkline, benchmark, benchmark_label) | metric | KPI tile with colored delta, inline trend sparkline, and benchmark comparison |
aiui.metric(label, *, value, delta, delta_color, caption, sparkline, benchmark, benchmark_label)
metric
| aiui.stat_group(stats) | stat_group | Compact multi-metric strip |
aiui.stat_group(stats)
stat_group
| aiui.table(data=None, *, headers, rows, columns, searchable, sortable, page_size, row_detail, ...) | table | Full data table (accepts pandas/Polars DataFrames, dict lists, or headers+rows): typed columns (number, badge, tag, link, date, progress, image, sparkline), search, sort, paging, and row detail drawer |
aiui.table(data=None, *, headers, rows, columns, searchable, sortable, page_size, row_detail, ...)
table
headers
rows
number
badge
tag
link
date
progress
image
sparkline
| aiui.sheet(title, *, headers, rows, tabs, id, action, save_label) | sheet | Interactive multi-tab spreadsheet with live cell editing, zero-eval formulas (=SUM, =AVERAGE, =IF), row filter, CSV/JSON export, and optional action= Save callback to Python |
aiui.sheet(title, *, headers, rows, tabs, id, action, save_label)
sheet
=SUM
=AVERAGE
=IF
action=
| aiui.whiteboard(items, *, title, id) | whiteboard | Interactive whiteboard canvas with draggable stickies/shapes, live arrow tracking, + Sticky, zoom, fullscreen, and SVG/JSON export |
aiui.whiteboard(items, *, title, id)
whiteboard
+ Sticky
| aiui.chart(title, *, data, chart_type, x, y, y2, stacked, reference, facet, ...) | chart | Lazy-loaded Recharts chart (accepts dict lists or pandas/Polars DataFrames): bar, barh, line, area, scatter, pie, donut, histogram, heatmap, sparkline, plus facet small multiples |
aiui.chart(title, *, data, chart_type, x, y, y2, stacked, reference, facet, ...)
chart
bar
barh
line
area
scatter
pie
donut
histogram
heatmap
facet
| aiui.plotly_chart(fig, title="", *, height, caption) | chart | Converts standard Plotly figures (bar, line, area, scatter, pie/donut, histogram, heatmap) into native Recharts chart blocks without bundling plotly.js |
aiui.plotly_chart(fig, title="", *, height, caption)
plotly.js
| aiui.badge(text, *, variant) | badge | Status pill (default, secondary, destructive, outline) |
aiui.badge(text, *, variant)
default
secondary
destructive
outline
| aiui.caption(text) | caption | Muted helper or footnote line |
aiui.caption(text)
caption
| aiui.progress_bar(label, *, value, max_value=100) | progress_bar | Labeled progress indicator |
aiui.progress_bar(label, *, value, max_value=100)
progress_bar
| aiui.key_value_list(items, *, title) | key_value_list | Clean two-column key/value table |
aiui.key_value_list(items, *, title)
key_value_list
| aiui.definition_list(items, *, title) | definition_list | Structured label/value definition list |
aiui.definition_list(items, *, title)
definition_list
| aiui.code_block(code, *, language) | code_block | Syntax-highlighted code with copy button |
aiui.code_block(code, *, language)
code_block
| aiui.diff_viewer(before, after, *, title, before_label, after_label) | diff_viewer | Line-by-line unified diff viewer for prompts, configs and generated code |
aiui.diff_viewer(before, after, *, title, before_label, after_label)
diff_viewer
| aiui.copy_field(value, *, label, secret=False) | copy_field | Copyable command, URL or API key box with optional secret reveal toggle |
aiui.copy_field(value, *, label, secret=False)
copy_field
| aiui.json_view(data, *, title, collapsed) | json_view | Collapsible JSON inspector |
aiui.json_view(data, *, title, collapsed)
json_view
| aiui.avatar(*, src, name, fallback, size) | avatar | User or agent avatar image/initials |
aiui.avatar(*, src, name, fallback, size)
avatar
<Tabs>
<Tab title="Python">
</Tab>
<Tab title="YAML">
</Tabs>
See the full Component API Reference for all column formatters and chart parameters.