This commit is contained in:
Vula Builder
2026-07-31 18:44:29 +00:00
parent 79df249a57
commit b06b1ae793
+27
View File
@@ -0,0 +1,27 @@
import type { ReactNode } from "react"
import { cn } from "@/lib/utils"
interface BadgeProps {
children: ReactNode
variant?: "primary" | "secondary" | "accent" | "outline"
className?: string
}
export default function Badge({ children, variant = "primary", className }: BadgeProps) {
return (
<span
className={cn(
"inline-flex items-center rounded-full px-3 py-1 text-xs font-medium",
{
"bg-[#ea580c] text-white": variant === "primary",
"bg-[#36454F] text-white": variant === "secondary",
"bg-[#6b8e23] text-white": variant === "accent",
"border border-border bg-background text-foreground": variant === "outline"
},
className
)}
>
{children}
</span>
)
}