{#- chirp-ui: Dense workspace primitives Small semantic shapes for serious multi-region workspaces. These primitives are intentionally narrow: filter rails, metric strips, result collections/cards, and inspector panels. They carry layout-affinity attributes so workspace shells can resolve natural placement without page-local grid wrappers. -#} {% def filter_rail(label="Filters", cls="") %} {% end %} {% def filter_rail_item(href, label, count=none, meta=none, icon=none, active=false, cls="", attrs_map=none) %} {% if icon %}{% end %} {{ label }} {% if meta %}{{ meta }}{% end %} {% if count is not none %}{{ count }}{% end %} {% end %} {% def metric_strip(label="Metrics", cls="") %}
{% slot %}
{% end %} {% def metric_item(value, label, cls="") %} {{ value }} {{ label }} {% end %} {% def result_collection(label="Results", title=none, cls="") %}
{% if title %}

{{ title }}

{% slot meta %}
{% end %}
{% slot %}
{% end %} {% def result_card(title, subtitle=none, cls="", attrs_map=none) %}
{% slot mark %}

{{ title }}

{% if subtitle %}

{{ subtitle }}

{% end %}
{% slot actions %}
{% slot %}
{% end %} {% def inspector_panel(title=none, subtitle=none, cls="") %}
{% if title or subtitle %}
{% if title %}

{{ title }}

{% end %} {% if subtitle %}

{{ subtitle }}

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