{"version":"v1.0","client_state":{"Studio.default":{"fields":{"primary":"#8a4a1f","secondary":"#3a52b0","success":"#2f9e64","warning":"#f0a91b","error":"#e5484d","info":"#0e9bc4","background":"#fafafa","surface":"#ffffff","interface":"#f0f0f1","text":"#171717","muted":"#6b6b6e","d_primary":"#9e5e34","d_secondary":"#566dc7","d_success":"#2f9e64","d_warning":"#f0a91b","d_error":"#e5484d","d_info":"#0e9bc4","d_background":"#0a0a0a","d_surface":"#151515","d_interface":"#212121","d_text":"#f5f5f5","d_muted":"#a0a0a3","spacing":0.25,"space_box":0.25,"space_gap":0.25,"box":0.625,"field_":0.5,"selector":0.25,"stroke":1.0,"font":"ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'"},"persist":"local","send_to_server":true},"ColorScheme.default":{"fields":{"mode":"system"},"persist":"local","send_to_server":true}},"endpoints":{"action":"/_bretzel/action","sse":"/_bretzel/sse","refetch":"/_bretzel/refetch"},"csrf":"4b07d6b8076a06039bdf96131446801d","page_id":"146631db88ca426c8ebe37427606c02b","address":""}
ui.table

Table

Columns declared once, rows as plain dicts — and any cell can render a badge, an avatar or a button.

Invoices

ui.column names the key, the label and the alignment; render= turns a raw status into a badge.
InvoiceCustomerIssuedStatusAmount
INV-2041Northwind TradersSep 24Paid€4,280.00
INV-2040Lumen StudioSep 22Pending€1,150.00
INV-2039Atlas FreightSep 15Overdue€9,600.00
INV-2038Kinfolk & CoSep 12Paid€720.00
INV-2037Brightline LabsSep 08Draft€2,340.00

Team members

A cell can hold a whole layout. size="lg" gives the rows room for an avatar and two lines.
MemberRoleLast seen
OwnerOnline
Admin2 h ago
Chloé Martin
Chloé Martin[email protected]
EditorYesterday
Tomás Silva
Tomás Silva[email protected]
ViewerLast week

Click a row to open it

on_item_click receives the row's key on the server; the detail below re-renders. Rows are keyboard operable too.
InvoiceCustomerStatusAmount
INV-2041Northwind TradersPaid€4,280.00
INV-2040Lumen StudioPending€1,150.00
INV-2039Atlas FreightOverdue€9,600.00
INV-2038Kinfolk & CoPaid€720.00
INV-2037Brightline LabsDraft€2,340.00
INV-2039 · Atlas FreightIssued Sep 15 — €9,600.00

When there is nothing to show

An empty table shows an empty state, not a lonely header.
InvoiceCustomerAmount

No invoice this month

Invoices you issue in October will show up here.