<button type="button" class="n7-btn
n7-btn--primary
n7-btn--primary n7-btn--l">
Button label
</button>
{% extends '@button' %}
{%- block classes -%}
{{ super() }} n7-btn--l
{%- endblock classes -%}
{%- block after -%}
{% if icon %}
{% render '@icon', { 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 md:w-5 md:h-5 lg:w-6 lg:h-6"
}
Button variants.
Variants extend button.njk template. Variant classes are specified in variant template. Button configurations: