Deploy
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
|
interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement> {
|
||||||
|
variant?: "primary" | "secondary" | "accent" | "outline"
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function Badge({ variant = "primary", className, children, ...props }: BadgeProps) {
|
||||||
|
return (
|
||||||
|
<span
|
||||||
|
className={cn(
|
||||||
|
"inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",
|
||||||
|
{
|
||||||
|
"bg-[#16a34a] text-white": variant === "primary",
|
||||||
|
"bg-[#d4af37] text-[#0d2114]": variant === "secondary",
|
||||||
|
"bg-[#8b5a3c] text-white": variant === "accent",
|
||||||
|
"border border-[#d4e2d9] text-[#0d2114]": variant === "outline"
|
||||||
|
},
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
{...props}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</span>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user