Deploy
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
interface BadgeProps {
|
||||
variant?: "primary" | "secondary" | "accent"
|
||||
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-medium",
|
||||
{
|
||||
"bg-[#18181b] text-white": variant === "primary",
|
||||
"bg-[#36454F] text-white": variant === "secondary",
|
||||
"bg-[#c0c0c0] text-[#0f0f17]": variant === "accent"
|
||||
},
|
||||
className
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user