Add label macro
This commit is contained in:
8
templates/components/label.html
Normal file
8
templates/components/label.html
Normal file
@@ -0,0 +1,8 @@
|
||||
{% 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 %}
|
Reference in New Issue
Block a user