Skip to Content
Dither

Dither / components

Badge

A short status or label. The tag variant is the black annotation used in charts.

  • Stable
  • 8 variants
  • 2 props
  • Light & Dark
light
DefaultSecondaryOutlineNewPaidOverdueBetaTarget 70%
dark
DefaultSecondaryOutlineNewPaidOverdueBetaTarget 70%
Code
import { Badge } from "@/components/ui/badge";export default function BadgeDemo() {  return (    <div className="flex flex-wrap items-center justify-center gap-2">      <Badge>Default</Badge>      <Badge variant="secondary">Secondary</Badge>      <Badge variant="outline">Outline</Badge>      <Badge variant="brand">New</Badge>      <Badge variant="positive">Paid</Badge>      <Badge variant="destructive">Overdue</Badge>      <Badge variant="informative">Beta</Badge>      <Badge variant="tag">Target 70%</Badge>    </div>  );}

Installation

npx shadcn add @dither/badge

Usage

import { Badge } from "@/components/ui/badge";

<Badge variant="positive">Paid</Badge>

Guidelines

  • Short status or category labels (1–2 words), never actions.
  • Status colours follow the system: positive, destructive, informative; neutral by default.
  • Don't stack more than two badges on one item.

Props

Prop

Type

Examples

See the preview above.

Dither · Badgev0.2.0

On this page