260703_01_FST: First Commit
This commit is contained in:
12
.tooling/components/ui/badge.tsx
Normal file
12
.tooling/components/ui/badge.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { HTMLAttributes } from "react";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export type BadgeVariant = "default" | "secondary" | "outline" | "destructive";
|
||||
|
||||
export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
||||
variant?: BadgeVariant;
|
||||
}
|
||||
|
||||
export function Badge({ className, variant = "default", ...props }: BadgeProps) {
|
||||
return <span data-variant={variant} className={cn(className)} {...props} />;
|
||||
}
|
||||
Reference in New Issue
Block a user