{# @description The heading row a card or a dialog is built from, shared by c-card.header and c-modal.header: the heading, its badges and the actions at the end. In a card or dialog with a view it is the layout's header, with a toggle at each end for the sidebar on that side; the toggles show only there, and only for a sidebar that can close. #} {# @prop kind:select['card','modal'] | default:"card" | description:"Which box the row heads." #} {# @prop title:text | description:"Heading text." #} {# @prop icon:text | description:"Leading icon name for the heading." #} {# @prop href:text | description:"Cards only. The title becomes a link stretched over the whole card." #} {# @prop class:text | description:"Extra classes on the row." #} {# @slot Heading markup — Drawn inside the heading, after the icon and the title. #} {# @slot:badges Status, counts — Just after the heading. #} {# @slot:actions Buttons, dropdown — End-aligned. #}
{% if title or icon or slot.strip %}

{% if icon %}{% endif %} {% if title and href and kind == "card" %} {{ title }} {% elif title %} {{ title }} {% endif %} {{ slot }}

{% endif %} {% if badges %}
{{ badges }}
{% endif %}
{{ actions }}