import type { HTMLAttributes } from "react"; import { cn } from "@/lib/utils"; export type BadgeVariant = "neutral" | "accent" | "success" | "warning" | "destructive"; export interface BadgeProps extends HTMLAttributes { /** Color treatment. Default "neutral". */ variant?: BadgeVariant; } const VARIANT_CLASS: Record = { neutral: "bg-muted text-muted-foreground shadow-[0_0_0_1px_var(--border)]", accent: "bg-accent/15 text-accent", success: "bg-success/15 text-success", warning: "bg-warning/15 text-warning", destructive: "bg-destructive/15 text-destructive", }; /** A small status pill. Crossfades color when its variant changes, such as pending to success. */ export function Badge({ variant = "neutral", className, ...props }: BadgeProps) { return ( ); }