File size: 578 Bytes
aacd28d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import React from "react";
import { cn } from "@/lib/utils";

const variants = {
  default:
    "bg-slate-900 text-white hover:bg-slate-900/90",
  secondary:
    "bg-slate-100 text-slate-800 border border-slate-200",
  outline:
    "border border-slate-200 text-slate-700",
};

export function Badge({ className, variant = "default", ...props }) {
  return (
    <span
      className={cn(
        "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",
        variants[variant] || variants.default,
        className
      )}
      {...props}
    />
  );
}