This commit is contained in:
Vula Builder
2026-07-27 17:10:24 +00:00
parent cb2b3fc232
commit 1be901aef5
+35
View File
@@ -0,0 +1,35 @@
import { cn } from "@/lib/utils"
interface BadgeProps {
variant?: "primary" | "secondary" | "outline"
size?: "sm" | "md"
className?: string
children: React.ReactNode
}
export default function Badge({
variant = "primary",
size = "md",
className,
children
}: BadgeProps) {
return (
<span
className={cn(
"inline-flex items-center font-medium rounded-full",
{
"bg-[#18181b] text-white": variant === "primary",
"bg-[#d4af37] text-white": variant === "secondary",
"border border-[#e7eaef] bg-white text-[#101418]": variant === "outline"
},
{
"px-2 py-0.5 text-xs": size === "sm",
"px-3 py-1 text-sm": size === "md"
},
className
)}
>
{children}
</span>
)
}