Zazz Design Framework
Components

Badge

Status and category chips that use the standard data-variant system.

Badges use the .ui-badge class. Set colors with data-variant (default when omitted). Set data-size="icon" for square icon badges.

Badges can be static <span> elements or interactive <button> / <a> elements with hover/active states and disabled styling.

Variants

Loading components…

Icon badge

Include <span class="sr-only"> for accessible names on icon-only badges:

Loading components…

API

AttributeValues
data-variantprimary, muted, ghost, link (omit = default)
data-sizeicon

To apply status colors, override component tokens:

<span
  class="ui-badge"
  style="--ui-badge-background: var(--success); --ui-badge-foreground: var(--success-foreground)"
>
  Active
</span>

On this page