Communicate status clearly — from inline alerts and live job trackers to the built-in real-time Notification Center in the top header bar.
| Python builder | YAML type | What it renders |
type
|---|---|---|
| aiui.alert(message, *, variant="info", title) | alert | Inline banner (info, success, warning, error) |
aiui.alert(message, *, variant="info", title)
alert
info
success
warning
error
| aiui.callout(content, *, variant="info", title) | callout | Highlighted note or tip block |
aiui.callout(content, *, variant="info", title)
callout
| aiui.status(label, *, state, detail, progress, log) | status | Live job row (queued, running, done, failed) with progress bar & log tail |
aiui.status(label, *, state, detail, progress, log)
status
queued
running
done
failed
| aiui.toast(message, *, variant="info", duration=3000) | toast | Page-rendered toast banner |
aiui.toast(message, *, variant="info", duration=3000)
toast
| aiui.spinner(text="Loading...") | spinner | Animated loading indicator |
aiui.spinner(text="Loading...")
spinner
| aiui.skeleton(*, width, height, variant="text") | skeleton | Placeholder shimmer (text, card, avatar) |
aiui.skeleton(*, width, height, variant="text")
skeleton
text
card
avatar
| aiui.empty(text="No data") | empty | Clean empty-state panel |
aiui.empty(text="No data")
empty
| aiui.dialog(title, *, children, description, trigger_label, variant) | dialog | Modal dialog opened by a button |
aiui.dialog(title, *, children, description, trigger_label, variant)
dialog
| aiui.popover(trigger, *, children) | popover | Contextual floating panel |
aiui.popover(trigger, *, children)
popover
| aiui.tooltip(child, *, content) | tooltip | Hover hint wrapping any child block |
aiui.tooltip(child, *, content)
tooltip
Every app shell ships with a modular, DRY Notification Center (builtin.notifications) in the top header bar: unread badge, All / Unread / Category filters, mark read, dismiss, and safe SPA action links — streamed live over SSE (/api/notifications/stream).
builtin.notifications
/api/notifications/stream
<Tabs>
<Tab title="Push from anywhere (Python)">
</Tab>
<Tab title="From a chat or page handler">
<Tab title="Browser Plugin (@aiui/sdk)">
</Tabs>
See Notification Center architecture & REST/SSE API for custom storage (aiui.set_notification_store) and custom transport sources (notifications.registerSource).
aiui.set_notification_store
notifications.registerSource