This commit is contained in:
Vula Builder
2026-06-03 16:38:53 +00:00
parent c809fda6fc
commit 67a1d46cf2
+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-semibold transition-colors",
{
"bg-primary text-primary-foreground return": variant === "primary",
"bg-secondary text-secondary-foreground": variant === "secondary",
"bg-accent text-accent-foreground": variant === "accent",
"border border-border bg-background text-muted-foreground": variant === "outline"
},
className
)}
>
{children}
</span>
)
}