This commit is contained in:
Vula Builder
2026-07-25 19:05:21 +00:00
parent d910201446
commit c49d72dc45
+27
View File
@@ -0,0 +1,27 @@
import React from 'react'
import { cn } from "@/lib/utils"
interface BadgeProps {
variant?: "primary" | "secondary" | "accent" | "outline"
className?: string
children: React.ReactNode
}
export default function Badge({ variant = "primary", className, children }: BadgeProps) {
return (
<span
className={cn(
"inline-flex items-center rounded-full px-3 py-0.5 text-xs font-medium",
{
"bg-[#8b5a3c] text-white": variant === "primary",
"bg-[#d4af37] text-[#17120f]": variant === "secondary",
"bg-[#6b8e23] text-white": variant === "accent",
"border border-[#403630] bg-transparent text-[#eeeae7]": variant === "outline"
},
className
)}
>
{children}
</span>
)
}