{% props label = null, renderLabelRaw = false, icon = null, htmlAttributes = {}, %} {# don't use 'label is not empty' here; it'll trigger deprecation messages: Method TranslatableMessage::__toString() is deprecated #} {% set has_label = label is not same as(false) and label is not null and label is not same as('') %} {% if has_label or icon is not empty %}
  • {%- if icon %} {% endif -%} {%- if has_label -%}{{ renderLabelRaw ? label|raw : label }}{%- endif -%}
  • {% endif %}