{# @description Opinionated card: header (icon/title, badges, actions), body, footer. #} {# @prop title:text | default:"" | description:"Heading text." #} {# @prop icon:text | default:"" | description:"Leading icon name for the heading." #} {# @prop tight:boolean | description:"Remove body padding, for full-bleed tables/lists." #} {# @prop class:text | description:"Extra classes on the .card surface." #} {# @prop body_class:text | description:"Extra classes on the .card-body." #} {# @slot Card body content — The main card content. #} {# @slot:badges Status, counts — Header, just after the title. #} {# @slot:actions Buttons, dropdown — Header, end-aligned. #} {# @slot:footer Footer content — Footer, start-aligned. #} {# @slot:footer_end Footer content — Footer, end-aligned. #}
{% if title or icon or badges or actions %}
{% if title or icon %}

{% if icon %}{% endif %} {% if title %}{{ title }}{% endif %}

{% endif %} {% if badges %}
{{ badges }}
{% endif %} {% if actions %}
{{ actions }}
{% endif %}
{% endif %} {{ slot }} {% if footer or footer_end %}
{% if footer %}
{{ footer }}
{% endif %} {% if footer_end %}
{{ footer_end }}
{% endif %}
{% endif %}