Seth0330 commited on
Commit
aacd28d
·
verified ·
1 Parent(s): e74374c

Create frontend/src/components/ui/badge.jsx

Browse files
frontend/src/components/ui/badge.jsx ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from "react";
2
+ import { cn } from "@/lib/utils";
3
+
4
+ const variants = {
5
+ default:
6
+ "bg-slate-900 text-white hover:bg-slate-900/90",
7
+ secondary:
8
+ "bg-slate-100 text-slate-800 border border-slate-200",
9
+ outline:
10
+ "border border-slate-200 text-slate-700",
11
+ };
12
+
13
+ export function Badge({ className, variant = "default", ...props }) {
14
+ return (
15
+ <span
16
+ className={cn(
17
+ "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium",
18
+ variants[variant] || variants.default,
19
+ className
20
+ )}
21
+ {...props}
22
+ />
23
+ );
24
+ }