contentcss
Tag
Compact label chips with status color variants, used standalone or inside the tag input.
CSS Variables
| Variable | Default | Scope | Description |
|---|---|---|---|
--z-tag-bg | transparent | .z-tag | Background base color, mixed with transparency using --z-tag-bg-o. |
--z-tag-bg-o | 0% | .z-tag | Background opacity percentage used in the mix. |
--z-tag-color | var(--z-bg-f) | .z-tag | Text base color, mixed with transparency using --z-tag-color-o. |
--z-tag-color-o | 100% | .z-tag | Text opacity percentage used in the mix. |
--z-tag-font-size | var(--z-global-font-size-small) | .z-tag | Font size of the tag text. |
--z-tag-gap | 0.5rem | .z-tag | Gap between tag content (text, icons, remove button). |
--z-tag-height | 1.75rem | .z-tag | Minimum height of the tag. |
--z-tag-hover-duration | 150ms | .z-tag | Duration of the hover transition. |
--z-tag-hover-opacity | 0.8 | .z-tag | Opacity applied while hovered. |
--z-tag-line-height | var(--z-global-line-height-small) | .z-tag | Line height of the tag text. |
--z-tag-padding | 0.25rem 0.5rem | .z-tag | Inner padding of the tag. |
--z-tag-radius | var(--z-global-radius-small) | .z-tag | Corner radius of the tag. |
CSS Classes
| Class | Role | Applies to | Description |
|---|---|---|---|
.z-tag | root | .z-tag | Root class of the tag chip. |
.z-tag-danger | modifier | .z-tag | Danger color variant. |
.z-tag-info | modifier | .z-tag | Info color variant. |
.z-tag-muted | modifier | .z-tag | Muted color variant. |
.z-tag-primary | modifier | .z-tag | Primary color variant. |
.z-tag-secondary | modifier | .z-tag | Secondary color variant. |
.z-tag-success | modifier | .z-tag | Success color variant. |
.z-tag-warning | modifier | .z-tag | Warning color variant. |