Badge

Last updated: October 14, 2026

Compact labels, tags, and presence dots for status and metadata.

Installation

npx smoothui-cli add badge

Features

  • Variants: default, secondary, outline, destructive, success, warning
  • Sizes: sm and md
  • StatusDot for online / away / busy / offline with optional pulse
  • SmoothUI-owned — no Base UI / Radix twin required

States

Features

Mixed variants for labels and filter chips.

Sizes

Compact sm next to default md.

Status

Presence dots with optional pulse on online.

Accessibility

ARIA Attributes

AttributeElementPurpose
role="status"StatusDotAnnounces presence state
aria-labelStatusDotStatus name (online, busy, …)

Reduced Motion

StatusDot pulse disables when prefers-reduced-motion is set.

Props