{% load allauth %} {% comment %} Delegates to . allauth `tags` map to the variant/extra classes; "outline" composes and "prominent" (entrance CTAs) becomes full-width. Branched on href/form because cotton attributes are always emitted: an empty form="" would disassociate a submit button from its enclosing form. {% endcomment %} {% with tags=attrs.tags|default:"" %} {% if attrs.href %} {% slot %} {% endslot %} {% elif attrs.form %} {% slot %} {% endslot %} {% else %} {% slot %} {% endslot %} {% endif %} {% endwith %}