HelpTribe.

StatusBadge

Status indicator with contextual color and icon for ERP workflow states, compliance checks, and task progress tracking.

Installation

$ npx shadcn@latest add status-badge

Preview

Active

Variants

CompletedPending ReviewFailedIn ProgressQueuedLive Dispatch

Usage (React/TSX)

import { StatusBadge } from "@/components/ui/status-badge"

export default function TaskRow() {
  return (
    <div className="flex items-center justify-between p-3">
      <span className="text-zinc-300">Consolidate Q2 Ledger</span>
      <StatusBadge variant="success">Completed</StatusBadge>
    </div>
  )
}

Props

PropTypeDefaultDescription
variant"success" | "warning" | "error" | "info" | "pending" | "active""info"The visual style and icon.
showIconbooleantrueWhether to show the status icon.
classNamestringβ€”Additional CSS classes to apply.
childrenReactNodeβ€”Label text content.