feat: improve app ui and project metadata
This commit is contained in:
16
apps/web/components/ui/Badge.tsx
Normal file
16
apps/web/components/ui/Badge.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { HTMLAttributes, ReactNode } from "react";
|
||||
|
||||
import { badgeClass, type BadgeVariant } from "@/lib/ui/variants";
|
||||
|
||||
interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
||||
children: ReactNode;
|
||||
variant?: BadgeVariant;
|
||||
}
|
||||
|
||||
export function Badge({ children, className, variant, ...props }: BadgeProps) {
|
||||
return (
|
||||
<span className={badgeClass({ variant, className })} {...props}>
|
||||
{children}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user