Deploy
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
import { cn } from "@/lib/utils"
|
||||||
|
import React from 'react'
|
||||||
|
|
||||||
|
interface BadgeProps {
|
||||||
|
variant?: "default" | "secondary" | 'outline'
|
||||||
|
className?: string
|
||||||
|
children: React.ReactNode
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function Badge({ variant = 'default', className, children }: BadgeProps) {
|
||||||
|
return (
|
||||||
|
<span
|
||||||
|
className={cn(
|
||||||
|
"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium",
|
||||||
|
{
|
||||||
|
"bg-[#d4af37] text-[#210d0d]": variant === "default",
|
||||||
|
"bg-[#0f52ba] text-white": variant === "secondary",
|
||||||
|
"border border-[#e2d4d4] text-[#210d0d]": variant === "outline"
|
||||||
|
},
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</span>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user