mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-17 18:21:28 +10:00
refactor(v4.0.0-alpha): beginning of a new era
This commit is contained in:
12
libs/ui/src/components/badge.tsx
Normal file
12
libs/ui/src/components/badge.tsx
Normal file
@ -0,0 +1,12 @@
|
||||
import { cn } from "@reactive-resume/utils";
|
||||
import { type VariantProps } from "class-variance-authority";
|
||||
|
||||
import { badgeVariants } from "../variants/badge";
|
||||
|
||||
export interface BadgeProps
|
||||
extends React.HTMLAttributes<HTMLDivElement>,
|
||||
VariantProps<typeof badgeVariants> {}
|
||||
|
||||
export const Badge = ({ className, variant, outline, ...props }: BadgeProps) => (
|
||||
<div className={cn(badgeVariants({ variant, outline }), className)} {...props} />
|
||||
);
|
||||
Reference in New Issue
Block a user