Deploy
This commit is contained in:
@@ -0,0 +1,28 @@
|
|||||||
|
import React from "react"
|
||||||
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
|
interface BadgeProps {
|
||||||
|
className?: string
|
||||||
|
children: React.ReactNode
|
||||||
|
variant?: "default" | "secondary" | "accent" | "outline" | "muted"
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function Badge({ className, children, variant = "default" }: BadgeProps) {
|
||||||
|
return (
|
||||||
|
<span
|
||||||
|
className={cn(
|
||||||
|
"inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium leading-none",
|
||||||
|
{
|
||||||
|
"bg-primary text-primary-foreground": variant === "default",
|
||||||
|
"bg-secondary text-secondary-foreground": variant === "secondary",
|
||||||
|
"bg-accent text-accent-foreground": variant === "accent",
|
||||||
|
"bg-muted text-muted-foreground": variant === "muted",
|
||||||
|
"border border-border bg-transparent text-foreground": variant === "outline"
|
||||||
|
},
|
||||||
|
className
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</span>
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user