<span class="n7-category n7-content-placeholder "><svg class="n7-icon inline-block align-middle fill-current w-2 h-2" aria-hidden="true" focusable="false" role="img">
<use href="../../icons.svg#solid--circle" />
</svg>
Category label
</span>
{% extends '@category' %}
{%- block before -%}
{% render '@icon--small', { id: icon, size: 'w-2 h-2' }, true %}
{%- endblock before -%}
{
"text": "Category label",
"classes": "n7-content-placeholder",
"icon": "solid--circle"
}
/**
* CATEGORY
*
*/
@layer components {
.n7-category {
@apply inline-flex items-center gap-2 pr-2 uppercase font-medium text-sm border-r last-of-type:border-r-0;
}
.n7-category--sm {
@apply text-xs;
}
.n7-category--lg {
@apply text-lg;
}
.n7-category--outline {
@apply px-2 py-1 rounded border last-of-type:border-r;
}
}
Category component configurations.
Blocks: