This commit is contained in:
Vula Builder
2026-07-14 19:09:03 +00:00
parent 5778fe05f6
commit 854c152fdf
+26
View File
@@ -0,0 +1,26 @@
import { cn } from "@/lib/utils"
interface BadgeProps {
variant?: "default" | "secondary" | "accent" | "outline"
className?: string
children: React.ReactNode
}
export default function Badge({ variant = "default", className, children }: BadgeProps) {
return (
<span
className={cn(
"inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium transition-colors",
{
"bg-[#36454F] text-white": variant === "default",
"bg-[#d4af37] text-white": variant === "secondary",
"bg-[#16a34a] text-white": variant === "accent",
"border border-[#d4dadd] text-[#1f2b33]": variant === "outline",
},
className
)}
>
{children}
</span>
)
}