{"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},"Checkout.default":{"fields":{"step":"shipping"},"persist":"local","send_to_server":true}},"endpoints":{"action":"/_bretzel/action","sse":"/_bretzel/sse","refetch":"/_bretzel/refetch"},"csrf":"4b07d6b8076a06039bdf96131446801d","page_id":"ba3716cb513f4a2a9c8fbed96e500eb1","address":""}
ui.accordion

Accordion

Collapsible sections — one open at a time or several, with icons, a remembered state and commands to fold them all.

Frequently asked questions

One section open at a time; collapsible=True lets the open one close too.
How long is the free trial?
Fourteen days, with every feature of the Team plan. No card is needed to start.

Settings, several open at once

multiple=True takes a list of open sections. Items carry an icon, and one is disabled.
Profile
Notifications

Remember what was open

value= bound to a ClientState with persist="local": open a section, reload the page, it is still open.
Shipping address
Ada Lovelace · 12 Rue de la Paix, 75002 Paris

Expand and collapse from a button

expand_all() and collapse_all() return a client command for any on_click — no round-trip.
v2.3 — Credit notes
Refund part of an invoice and keep the ledger balanced.