{# djlint:off #} {% with element=href|yesno:"a,button" %} <{{ element }} class="btn{% if outline %} btn-outline-{{ variant }}{% else %} btn-{{ variant }}{% endif %}{% if size %} btn-{{ size }}{% endif %} {{ class }}" {{ attrs }}> {{ slot }} {{ text }} {% endwith %} {# djlint:on #}