Add label attribute

This commit is contained in:
brabli committed 2025-02-26 10:41:07 +00:00
1 parent ebc73e1b24
commit 2a7230298e
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -1,3 +1,7 @@
<div {{ attributes }} class="{{ this.finalClasses }}">
{% block content %}{% endblock %}
{% if block('content') is not empty %}
{% block content %}{% endblock %}
{% else %}
{{- this.label -}}
{% endif %}
</div>