<a href="#" class="n7-tab is-tab transition-all n7-tab--borderless flex p-2 md:p-3 text-sm md:text-base n7-content-01 hover:n7-background-02 transition-all
n7-tab--default flex p-2 md:p-3 border-b-2 border-transparent text-sm md:text-base n7-content-01 hover:n7-background-02
">
<span>tab label</span>
</a>
{% extends '@tab' %}
{% block classes %} n7-tab--borderless flex p-2 md:p-3 text-sm md:text-base n7-content-01 hover:n7-background-02{% if ariaSelected %} aria-selected:{{bgActiveColor}}{% endif %} transition-all
{%- if classes %}
{{ classes }}
{% endif -%}
{% endblock %}
{
"label": "tab label",
"href": "#",
"borderColor": "n7-border-gray-04",
"classes": "n7-tab--default flex p-2 md:p-3 border-b-2 border-transparent text-sm md:text-base n7-content-01 hover:n7-background-02",
"bgColor": "n7-background-01",
"bgActiveColor": "n7-background-02"
}
/**
* TAB
*
*
*/
/* BASE */
@layer components {
.n7-tab--default.is-active {
@apply n7-border-gray-04;
}
.n7-tab--borderless.is-active {
@apply n7-background-03;
}
/* FILLED */
/* .n7-tab--filled {
@apply py-2 px-3 n7-background-02 rounded-md n7-content-01 text-lg hover:shadow-md focus:bg-white active:text-white active:n7-background-05 aria-selected:text-white aria-selected:n7-background-05;
} */
/*
.n7-tab--filled.is-active {
@apply text-white n7-background-05;
} */
}
Tab element. Configuration:
Blocks: