{#- chirp-ui: Panel component Reusable titled pane for inspectors, activity feeds, file trees, and embedded work surfaces. Usage: {% from "chirpui/panel.html" import panel %} {% call panel(title="Tool Activity", scroll_body=true) %} {% slot actions %}{{ btn("Clear", variant="ghost", size="sm") }}{% end %}
Activity rows...
{% slot footer %}Connected{% end %} {% end %} -#} {% def panel(title=none, subtitle=none, surface_variant="muted", scroll_body=false, cls="") %} {% set surface_variant = surface_variant | validate_variant_block("surface", default="muted") %} {% set panel_cls = "chirpui-panel" ~ (" chirpui-panel--scroll" if scroll_body else "") ~ (" " ~ cls if cls else "") %}
{% if title or subtitle %}
{% if title %}

{{ title }}

{% end %} {% if subtitle %}

{{ subtitle }}

{% end %}
{% slot actions %}
{% end %}
{% slot %}
{% end %}