2019-10-22 14:33:06 -04:00

9 lines
249 B
HTML

{% from "components/icon.html" import Icon %}
{% macro Label(icon_name, text, type=None, classes="") -%}
<span class='label {% if type %}label--{{ type }}{% endif %} {{ classes }}'>
{{ Icon(icon_name) }} {{ text }}
</span>
{%- endmacro %}