Status Badge
manifest-ui/status-badgeFreeBlock
Status badge with multiple states (success, pending, processing, error, shipped, delivered).
Install it
npx shadcn@latest add https://ui.manifest.build/r/status-badge.jsonSource
1"use client"23import {4 Check,5 Clock,6 AlertCircle,7 XCircle,8 Loader2,9 Truck,10} from "lucide-react"11import { cn } from "@/lib/utils"12import { demoStatusBadge } from './demo/status'1314/**15 * Available status types for the badge.16 * @typedef {"success" | "pending" | "processing" | "warning" | "error" | "shipped" | "delivered" | "cancelled"} StatusType17 */18export type StatusType =19 | "success"20 | "pending"21 | "processing"22 | "warning"23 | "error"24 | "shipped"25 | "delivered"26 | "cancelled"2728/**29 * ═══════════════════════════════════════════════════════════════════════════30 * StatusBadgeProps31 * ═══════════════════════════════════════════════════════════════════════════32 *33 * Props for the StatusBadge component.34 * Displays a status indicator with configurable appearance.35 */36export interface StatusBadgeProps {37 data?: {38 /** The status to display (success, pending, processing, warning, error, shipped, delivered, cancelled). */39 status?: StatusType40 }41 appearance?: {42 /** Custom label text that overrides the default status label. */43 label?: string44 /**45 * Whether to show the status icon.46 * @default true47 */48 showIcon?: boolean49 /**50 * Badge size variant.51 * @default "md"52 */53 size?: "sm" | "md" | "lg"54 }55}5657const statusConfig: Record<58 StatusType,59 { icon: React.ElementType; className: string; defaultLabel: string }60> = {61 success: {62 icon: Check,63 className: "bg-muted text-foreground border-border",64 defaultLabel: "Success",65 },66 pending: {67 icon: Clock,68 className: "bg-muted text-muted-foreground border-border",69 defaultLabel: "Pending",70 },71 processing: {72 icon: Loader2,73 className: "bg-muted text-foreground border-border",74 defaultLabel: "Processing",75 },76 warning: {77 icon: AlertCircle,78 className: "bg-muted text-foreground border-border",79 defaultLabel: "Warning",80 },81 error: {82 icon: XCircle,83 className: "bg-destructive/10 text-destructive border-destructive/20",84 defaultLabel: "Error",85 },86 shipped: {87 icon: Truck,88 className: "bg-muted text-foreground border-border",89 defaultLabel: "Shipped",90 },91 delivered: {92// … truncated
What it pulls in
npm packages
Files it writes
More from Manifest UI
All 32 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Amount Inputamount-input | Manifest UI | Blocks | Free | 1 dep · 2 files | |
| Chat Conversationchat-conversation | Manifest UI | Blocks | Free | 1 dep · 3 files | |
| Contact Formcontact-form | Manifest UI | Blocks | Free | 1 dep · 3 files | |
| Date & Time Pickerdate-time-picker | Manifest UI | Blocks | Free | 1 dep · 2 files | |
| Event Cardevent-card | Manifest UI | Blocks | Free | 1 dep · 2 files | |
| Event Confirmationevent-confirmation | Manifest UI | Blocks | Free | 1 dep · 2 files | |
| Event Detailevent-detail | Manifest UI | Blocks | Free | 3 deps · 2 files | |
| Event Listevent-list | Manifest UI | Blocks | Free | 3 deps · 2 files |
