Deploy
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
|
interface BadgeProps {
|
||||||
|
variant?: "default" | "primary" | "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 whitespace-nowrap",
|
||||||
|
{
|
||||||
|
"bg-[#daddd4] text-[#2c331f]": variant === "default",
|
||||||
|
"bg-[#6b8e23] text-white": variant === "primary",
|
||||||
|
"bg-[#36454F] text-white": variant === "secondary",
|
||||||
|
"border border-[#6b8e23] text-[#6b8e23] bg-transparent": variant === "outline"
|
||||||
|
},
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</span>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user