Organize any page cleanly across desktop and mobile (390px responsive stack) with 21 structure, workspace, and navigation builders.
390px
| Python builder | YAML type | What it renders |
type
|---|---|---|
| aiui.layout(children, *, refresh_every, params, badges, notifications) | Page root | Top-level page payload (_components), optional polling, URL params, live badges & notifications |
aiui.layout(children, *, refresh_every, params, badges, notifications)
_components
| aiui.columns(children) | columns | Responsive horizontal grid (stacks cleanly on mobile) |
aiui.columns(children)
columns
| aiui.chat_panel(*, title="Agent Chat", agent, height=520, session_id, welcome) | chat_panel | Embedded compact Agent Chat panel for split-pane workspaces (e.g. aiui.columns([doc_viewer, chat_panel])) |
aiui.chat_panel(*, title="Agent Chat", agent, height=520, session_id, welcome)
chat_panel
aiui.columns([doc_viewer, chat_panel])
| aiui.container(children, *, title) | container | Bordered section wrapper with optional heading |
aiui.container(children, *, title)
container
| aiui.card(title, *, value, footer) | card | Clean summary or KPI card |
aiui.card(title, *, value, footer)
card
| aiui.card_grid(items, *, columns=3) | card_grid | Responsive grid of entity cards (image, title, subtitle, badges, link) |
aiui.card_grid(items, *, columns=3)
card_grid
| aiui.tabs(items, *, lazy=False) | tabs | Tabbed panel; set lazy=True to load heavy tabs on first click |
aiui.tabs(items, *, lazy=False)
tabs
lazy=True
| aiui.accordion(items) | accordion | Collapsible FAQ / multi-section list |
aiui.accordion(items)
accordion
| aiui.expander(title, *, children, expanded, lazy, load) | expander | Single collapsible drawer with optional lazy loading |
aiui.expander(title, *, children, expanded, lazy, load)
expander
| aiui.list_detail(items, *, selected, detail) | list_detail | Master-detail split view (selectable list on left, details on right) |
aiui.list_detail(items, *, selected, detail)
list_detail
| aiui.board(columns=[...]) | board | Kanban board with horizontal status columns and cards |
aiui.board(columns=[...])
board
| aiui.stepper(steps, *, active=0, orientation="horizontal") | stepper | Multi-step workflow or onboarding progress (pending, active, done, error) |
aiui.stepper(steps, *, active=0, orientation="horizontal")
stepper
pending
active
done
error
| aiui.timeline(items, *, title) | timeline | Chronological vertical activity & audit feed with timestamps and status dots |
aiui.timeline(items, *, title)
timeline
| aiui.tree_view(nodes, *, title, default_expanded) | tree_view | Collapsible hierarchical tree for RAG sources, files and agent hierarchies |
aiui.tree_view(nodes, *, title, default_expanded)
tree_view
| aiui.header(text, *, level=2) | header | Section heading (h1–h4) |
aiui.header(text, *, level=2)
header
h1
h4
| aiui.divider(text=None) / aiui.separator() | divider / separator | Horizontal rule (optionally labeled) |
aiui.divider(text=None)
aiui.separator()
divider
separator
| aiui.breadcrumb(items) | breadcrumb | Navigation trail (Home / Analytics / Overview) |
aiui.breadcrumb(items)
breadcrumb
Home / Analytics / Overview
| aiui.pagination(total=..., page=1, per_page=10) | pagination | Paged controls for large datasets |
aiui.pagination(total=..., page=1, per_page=10)
pagination
| aiui.link(label, *, href, external) | link | Inline safe hyperlink |
aiui.link(label, *, href, external)
link
| aiui.link_button(label, *, href, variant, external) | link_button | Button-styled hyperlink |
aiui.link_button(label, *, href, variant, external)
link_button
| aiui.page_link(page_id, label, *, params, variant) | page_link | Instant client-side navigation to another app page (no reload) |
aiui.page_link(page_id, label, *, params, variant)
page_link
<Tabs>
<Tab title="Python">
</Tab>
<Tab title="YAML">
</Tabs>
See Server & YAML pages for lazy tab/expander action handlers and URL query sync.