{% load allauth %} {% comment %} djlint:off {% endcomment %} <{% if attrs.href %}a href="{{ attrs.href }}"{% else %}button{% endif %} {% if attrs.form %}form="{{ attrs.form }}"{% endif %} {% if attrs.id %}id="{{ attrs.id }}"{% endif %} {% if attrs.name %}name="{{ attrs.name }}"{% endif %} {% if attrs.value %}value="{{ attrs.value }}"{% endif %} {% if attrs.type %}type="{{ attrs.type }}"{% endif %} class="{% if "danger" in attrs.tags %}{% if "outline" in attrs.tags %}btn-outline theme-danger{% else %}btn-solid theme-danger{% endif %}{% elif "secondary" in attrs.tags %}{% if "outline" in attrs.tags %}btn-outline theme-secondary{% else %}btn-solid theme-secondary{% endif %}{% elif "link" in attrs.tags %}btn btn-link{% elif "outline" in attrs.tags %}btn-outline theme-primary{% else %}btn-solid theme-primary{% endif %}" > {% slot %} {% endslot %}