Skip to main content

Badge

The Badge component displays a small status label, tag, or count. It’s commonly used for status indicators, categories, notification counts, or labels.

Props

Variants

  • "default" - Neutral gray background
  • "primary" - Brand color background
  • "success" - Green/success color
  • "warning" - Yellow/warning color
  • "error" - Red/error color
  • "info" - Blue/info color

Sizes

  • "sm" - Small (padding: 2/6, font: 11px)
  • "md" - Medium (padding: 4/8, font: 12px) - default
  • "lg" - Large (padding: 6/10, font: 14px)

Examples

Basic Badges

Outline Style

Custom Colors

Sizes

With Icons

Custom Border Radius

Common Patterns

Status Indicators

Tags/Categories

Item Card with Badge

Notification Count

Priority Labels