This commit is contained in:
Vula Builder
2026-07-28 07:32:34 +00:00
parent c6b688c664
commit 6ee7b864f8
+26
View File
@@ -0,0 +1,26 @@
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-2.5 py-0.5 text-xs font-medium transition-colors",
{
"bg-[#8b5a3c] text-white": variant === "primary",
"bg-[#16a34a] text-white": variant === "secondary",
"bg-[#ea580c] text-white": variant === "accent",
"border border-[#e2dad4] text-[#21140d] bg-white": variant === "outline"
},
className
)}
>
{children}
</span>
)
}