This commit is contained in:
Vula Builder
2026-07-25 13:58:37 +00:00
parent 7abbe88337
commit 21df8869fc
+26
View File
@@ -0,0 +1,26 @@
import { cn } from "@/lib/utils"
import React from 'react'
interface BadgeProps {
variant?: "default" | "secondary" | 'outline'
className?: string
children: React.ReactNode
}
export default function Badge({ variant = 'default', className, children }: BadgeProps) {
return (
<span
className={cn(
"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
{
"bg-[#d4af37] text-[#210d0d]": variant === "default",
"bg-[#0f52ba] text-white": variant === "secondary",
"border border-[#e2d4d4] text-[#210d0d]": variant === "outline"
},
className
)}
>
{children}
</span>
)
}