This commit is contained in:
Vula Builder
2026-07-28 13:27:29 +00:00
parent d32c5d13db
commit 279de17bb4
+25
View File
@@ -0,0 +1,25 @@
import { cn } from "@/lib/utils"
interface BadgeProps {
variant?: "primary" | "secondary" | "accent"
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",
{
"bg-[#18181b] text-white": variant === "primary",
"bg-[#36454F] text-white": variant === "secondary",
"bg-[#c0c0c0] text-[#0f0f17]": variant === "accent"
},
className
)}
>
{children}
</span>
)
}