{% load ui %}{% comment %} Button, or a link styled as one when href is given. Parameters: label, variant ("primary" default, "secondary", "ghost", "danger"), size ("lg", "sm"), icon (before the label), icon_end (after it), icon_only (label read by screen readers only), full_width, href, type ("button" default; "submit" for forms), form_id (the form a submit button outside it submits), name, value, id, describedby (aria-describedby), disabled, busy (spinner and aria-busy while a request runs), extra_class. {% endcomment %} {% if href and not disabled %}{% if icon %}{% icon icon %}{% endif %}{% if icon_only %}{{ label }}{% else %}{{ label }}{% endif %}{% if icon_end %}{% icon icon_end "" "icon--flip" %}{% endif %}{% if href and not disabled %}{% else %}{% endif %}