<button type="button" class="n7-btn
n7-btn--primary
n7-btn--primary n7-btn--s">
Button label
</button>
{% extends '@button' %}
{%- block classes -%}
{{ super() }} n7-btn--s
{%- endblock classes -%}
{%- block after -%}
{% if icon %}
{% render '@icon--small', { id: icon, classes: 'ml-2 transition-all duration-200 ease-out transform group-hover:translate-x-1', size: iconsize }, true %}
{% endif %}
{%- endblock after -%}
{
"label": "Button label",
"type": "button",
"classes": "n7-btn--primary",
"iconsize": "w-4 h-4"
}
Button variants.
Variants extend button.njk template. Variant classes are specified in variant template. Button configurations: