Badge

Small status indicator with semantic colors.

Data DisplayTailwind CSS

Overview

Badges are used to highlight status, categories, or counts in a compact visual form.

When to use

  • To display status (active, pending, error)
  • To show counts or quantities
  • To categorize or label items

Preview

Default Success Warning Error Info

Usage

html
<!-- Tailwind CSS pattern - copy the HTML/classes below -->

Class Variations

Swap these Tailwind classes to change the pattern's appearance:

Variants

VariationTailwind Classes
Defaultbg-surface-hover text-default
Successbg-success text-success-foreground
Warningbg-warning text-warning-foreground
Errorbg-error text-error-foreground
Infobg-info text-info-foreground

Sizes

VariationTailwind Classes
Smallpx-2 py-0.5 text-xs
Mediumpx-2.5 py-0.5 text-xs

Default size

Guidelines

No specific guidelines documented for this component yet.

Examples

Variants

Default Success Warning Error Info

With Dot

Online Offline Processing

Related Components