{#- chirp-ui: Chat Layout component Structure for chat pages: messages panel + optional activity sidebar + input area. Eliminates inline styles for common chat patterns. Usage: {% from "chirpui/chat_layout.html" import chat_layout %} {% call chat_layout(show_activity=true, fill=true) %} {% slot messages %} {% end %} {% slot input %}
...
{% end %} {% slot activity %} {% end %} {% end %} fill=true: adds chirpui-chat-layout--fill. For SSE/HTMX roots inside the messages slot, add class chirpui-chat-layout__messages-body on the wrapper (see LAYOUT-VERTICAL.md). -#} {% def chat_layout(show_activity=false, cls="", fill=false) %}
{% slot messages %}
{% slot input %}
{% if show_activity %} {% end %}
{% end %}