{% import "tungsten/components/ui.html" as ui %} {# HeroStatWidget: one big number, a trend, a line of text, buttons and small bars. #}
{% if stat.icon_name %}{{ icon(stat.icon_name, 'h-5 w-5') }}{% endif %}

{{ __(stat.label or w.heading or '') }}

{% if w.description %}{{ __(w.description) }}{% endif %}

{{ stat.value }}

{% if stat.trend_value or stat.description %}

{% if stat.trend_value %}{{ ui.trend_pill(stat.trend_value, stat.trend_direction, stat.trend_color) }}{% endif %} {% if stat.description %}{{ __(stat.description) }}{% endif %}

{% endif %}
{% if bars %} {% endif %}
{% if actions %}
{% for a in actions %} {% set dark = a.color == 'dark' %} {{ icon(a.icon, 'h-4 w-4') }}{{ __(a.label) }} {% endfor %}
{% endif %}