Add label attribute

This commit is contained in:
brabli
2025-02-26 10:41:07 +00:00
parent ebc73e1b24
commit 2a7230298e
2 changed files with 6 additions and 2 deletions

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>