mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-25 09:24:54 +10:00
11 lines
430 B
TypeScript
11 lines
430 B
TypeScript
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} />
|
|
);
|