whynot-design/adapters/django/templates/whynot/_button.html

7 lines
506 B
HTML
Raw Normal View History

2026-05-25 19:32:22 +02:00
{# Button.
{% include "whynot/_button.html" with label="Promote" variant="primary" icon="arrow-right" %}
{% include "whynot/_button.html" with label="Cancel" %}
{% include "whynot/_button.html" with label="Read" href="/docs" variant="ghost" %} #}
<wn-button{% if variant %} variant="{{ variant }}"{% endif %}{% if icon %} icon="{{ icon }}"{% endif %}{% if href %} href="{{ href }}"{% endif %}{% if type %} type="{{ type }}"{% endif %}{% if disabled %} disabled{% endif %}>{{ label }}</wn-button>