contentcss

Tag

Compact label chips with status color variants, used standalone or inside the tag input.

CSS Variables

VariableDefaultScopeDescription
--z-tag-bgtransparent.z-tagBackground base color, mixed with transparency using --z-tag-bg-o.
--z-tag-bg-o0%.z-tagBackground opacity percentage used in the mix.
--z-tag-colorvar(--z-bg-f).z-tagText base color, mixed with transparency using --z-tag-color-o.
--z-tag-color-o100%.z-tagText opacity percentage used in the mix.
--z-tag-font-sizevar(--z-global-font-size-small).z-tagFont size of the tag text.
--z-tag-gap0.5rem.z-tagGap between tag content (text, icons, remove button).
--z-tag-height1.75rem.z-tagMinimum height of the tag.
--z-tag-hover-duration150ms.z-tagDuration of the hover transition.
--z-tag-hover-opacity0.8.z-tagOpacity applied while hovered.
--z-tag-line-heightvar(--z-global-line-height-small).z-tagLine height of the tag text.
--z-tag-padding0.25rem 0.5rem.z-tagInner padding of the tag.
--z-tag-radiusvar(--z-global-radius-small).z-tagCorner radius of the tag.

CSS Classes

ClassRoleApplies toDescription
.z-tagroot.z-tagRoot class of the tag chip.
.z-tag-dangermodifier.z-tagDanger color variant.
.z-tag-infomodifier.z-tagInfo color variant.
.z-tag-mutedmodifier.z-tagMuted color variant.
.z-tag-primarymodifier.z-tagPrimary color variant.
.z-tag-secondarymodifier.z-tagSecondary color variant.
.z-tag-successmodifier.z-tagSuccess color variant.
.z-tag-warningmodifier.z-tagWarning color variant.