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