Badge

Shows a short status, count, or label.

components/ui/badge.tsx
DefaultSecondaryOutlineErrorSuccess

Installation

npx betterone-ds add badge

Props

PropTypeDefault
variant"default" | "secondary" | "outline" | "destructive" | "success" | "warning" | "info""default"

Accessibility

  • Badges are text. Do not use them as the only way to show status.
  • Keep the label short, one or two words.