Deploy
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { cn } from "@/lib/utils"
|
||||
|
||||
interface BadgeProps {
|
||||
className?: string
|
||||
children: React.ReactNode
|
||||
variant?: "default" | "secondary" | "accent" | "outline"
|
||||
size?: "sm" | "md" | "lg"
|
||||
}
|
||||
|
||||
export default function Badge({ variant = "default", size = "md", className, children }: BadgeProps) {
|
||||
return (
|
||||
<span
|
||||
className={cn(
|
||||
"inline-flex items-center rounded-full font-medium",
|
||||
{
|
||||
"bg-[#18181b] text-white": variant === "default",
|
||||
"bg-[#d4af37] text-[#18181b]": variant === "secondary",
|
||||
"bg-[#dc2626] text-white": variant === "accent",
|
||||
"border border-[#e7eaef] text-[#101418]": variant === "outline"
|
||||
},
|
||||
{
|
||||
"px-2.5 py-0.5 text-xs": size === "sm",
|
||||
"px-3 py-1 text-sm": size === "md",
|
||||
"px-4 py-1.5 text-base": size === "lg"
|
||||
},
|
||||
className
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user