This commit is contained in:
Vula Builder
2026-09-15 18:02:58 +00:00
parent dec3aee7cb
commit 1af29f5e07
+28
View File
@@ -0,0 +1,28 @@
import React from "react"
import { cn } from "@/lib/utils"
interface BadgeProps {
className?: string
children: React.ReactNode
variant?: "default" | "secondary" | "accent" | "outline" | "muted"
}
export default function Badge({ className, children, variant = "default" }: BadgeProps) {
return (
<span
className={cn(
"inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium leading-none",
{
"bg-primary text-primary-foreground": variant === "default",
"bg-secondary text-secondary-foreground": variant === "secondary",
"bg-accent text-accent-foreground": variant === "accent",
"bg-muted text-muted-foreground": variant === "muted",
"border border-border bg-transparent text-foreground": variant === "outline"
},
className
)}
>
{children}
</span>
)
}