Deploy
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
import React from 'react'
|
||||||
|
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-3 py-0.5 text-xs font-medium",
|
||||||
|
{
|
||||||
|
"bg-[#8b5a3c] text-white": variant === "primary",
|
||||||
|
"bg-[#d4af37] text-[#17120f]": variant === "secondary",
|
||||||
|
"bg-[#6b8e23] text-white": variant === "accent",
|
||||||
|
"border border-[#403630] bg-transparent text-[#eeeae7]": variant === "outline"
|
||||||
|
},
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</span>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user