generalcss
Label
Compact solid-filled pill label with seven color schemes.
CSS Variables
| Variable | Default | Scope | Description |
|---|---|---|---|
--z-label-bg | var(--z-bg) | .z-label | Background color of the label. |
--z-label-bg-o | 100% | .z-label | Opacity applied to the background color. |
--z-label-border | var(--z-border) | .z-label | Border color. |
--z-label-border-o | var(--z-border-o) | .z-label | Opacity applied to the border color. |
--z-label-color | var(--z-bg-f) | .z-label | Text color. |
--z-label-color-o | 100% | .z-label | Opacity applied to the text color. |
--z-label-shadow · hook | var(--z-global-shadow) | .z-label | Box shadow; falls back to the global shadow. |
CSS Classes
| Class | Role | Applies to | Description |
|---|---|---|---|
.z-label | root | .z-label | Inline solid-filled pill for short labels. |
.z-label-danger | modifier | .z-label | Danger color scheme with white text. |
.z-label-destructive | modifier | .z-label | Destructive color scheme from the destructive palette tokens. |
.z-label-info | modifier | .z-label | Info color scheme with white text. |
.z-label-primary | modifier | .z-label | Primary color scheme. |
.z-label-secondary | modifier | .z-label | Secondary color scheme. |
.z-label-success | modifier | .z-label | Success color scheme with white text. |
.z-label-warning | modifier | .z-label | Warning color scheme with white text. |