File size: 430 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 |
import { cn } from "@reactive-resume/utils";
import { type VariantProps } from "class-variance-authority";
import { badgeVariants } from "../variants/badge";
export type BadgeProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof badgeVariants>;
export const Badge = ({ className, variant, outline, ...props }: BadgeProps) => (
<div className={cn(badgeVariants({ variant, outline }), className)} {...props} />
);
|