Deploy
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
import type { ReactNode } from "react"
|
||||||
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
|
interface BadgeProps {
|
||||||
|
children: ReactNode
|
||||||
|
variant?: "primary" | "secondary" | "accent" | "outline"
|
||||||
|
className?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function Badge({ children, variant = "primary", className }: BadgeProps) {
|
||||||
|
return (
|
||||||
|
<span
|
||||||
|
className={cn(
|
||||||
|
"inline-flex items-center rounded-full px-3 py-1 text-xs font-medium",
|
||||||
|
{
|
||||||
|
"bg-[#ea580c] text-white": variant === "primary",
|
||||||
|
"bg-[#36454F] text-white": variant === "secondary",
|
||||||
|
"bg-[#6b8e23] text-white": variant === "accent",
|
||||||
|
"border border-border bg-background text-foreground": variant === "outline"
|
||||||
|
},
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</span>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user