Deploy
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
interface BadgeProps {
|
||||
variant?: "default" | "secondary" | "accent" | "outline"
|
||||
className?: string
|
||||
children: React.ReactNode
|
||||
}
|
||||
|
||||
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-[#36454F] text-white": variant === "default",
|
||||
"bg-[#d4af37] text-white": variant === "secondary",
|
||||
"bg-[#16a34a] text-white": variant === "accent",
|
||||
"border border-[#d4dadd] text-[#1f2b33]": variant === "outline",
|
||||
},
|
||||
className
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user