{# A button of a form component action. vars: form, a #} {% import "tungsten/components/ui.html" as ui %} {% set label_html %}{{ icon(a.icon, 'h-4 w-4') }}{% if a.style != 'icon' and not a.hidden_label %}{{ a.label }}{% endif %}{% if a.badge %}{{ a.badge }}{% endif %}{% endset %} {% set cls = ui.button_classes(a.color, a.style, a.size, a.outlined) %} {% if a.disabled %} {% elif a.url %} {{ label_html }} {% else %} {% endif %}