{% with element=href|yesno:"a,button" %}
  • {# djlint:off #} <{{element}} class="group {% if active %}menu-active{% endif %} {% if tip %}is-drawer-close:tooltip is-drawer-close:tooltip-right{% endif %}" {% if tip %}data-tip="{{ tip }}"{% endif %} {{ attrs }}> {% if icon %}{% endif %} {{ label }} {% if badge %}{% endif %} {# djlint:on #}
  • {% endwith %}