{"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},"Mailbox.default":{"fields":{"folder":"inbox"},"persist":"memory","send_to_server":true}},"endpoints":{"action":"/_bretzel/action","sse":"/_bretzel/sse","refetch":"/_bretzel/refetch"},"csrf":"4b07d6b8076a06039bdf96131446801d","page_id":"e53ed76484d84bc4aab1ae79976970cb","address":""}
ui.sidebar

Sidebar

Sections, badges and an account menu at the foot — a column that folds to an icon rail or slides out of the way.

An app's navigation

Click the chevron beside the title, or the sidebar's right edge: it folds to a rail of icons, and each label becomes a tooltip. The account menu opens from the footer. In an app the sidebar fills the screen's height; in a box like this one, slots={"root": "h-full"} makes it fill the box. It is desktop navigation: on a phone, branch on Screen().is_mobile and show a ui.bottom_bar instead.

Good morning, Ada

Three invoices are due this week and 12 messages are waiting in your inbox.
Revenue

€48.2k

Open projects

14

Switch folders without a round trip

active= and on_click= are tied to a ClientState: the active row and the folder's messages change in the browser. In an app, give each item an href= and the active row follows the URL.

Inbox

LS
Lumen StudioBrand guidelines, v3
AF
Atlas FreightYour shipment left Rotterdam
KC
Kinfolk & CoInvoice INV-2038 is paid

Starred

NT
Northwind TradersRenewal: the numbers you asked for

Sent

GH
Grace HopperRe: onboarding checklist
AT
Alan TuringSlides for Thursday

Slides out of the way

collapsible="offcanvas" hides the whole column. ui.sidebar_trigger is the button that brings it back — put it wherever your top bar is.
Guides / Quickstart

Quickstart

Create an API key, install the client, and send your first request in under five minutes. Close the sidebar to read with the full width.

Three widths

width= sets the open width; collapsible="none" keeps the column open for good.