This commit is contained in:
Vula Builder
2026-07-29 18:15:25 +00:00
parent e9669c82ab
commit 10665cbee0
+26
View File
@@ -0,0 +1,26 @@
import { cn } from "@/lib/utils"
interface BadgeProps {
className?: string
children: React.ReactNode
variant?: "default" | "secondary" | "accent" | "outline"
}
export default function Badge({ variant = "default", 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-primary text-primary-foreground": variant === "default",
"bg-secondary text-secondary-foreground": variant === "secondary",
"bg-accent text-accent-foreground": variant === "accent",
"border border-border text-foreground": variant === "outline",
},
className
)}
>
{children}
</span>
)
}