import { cva, type VariantProps } from 'class-variance-authority' import * as React from 'react' import { cn } from '../lib/cn' export const badgeVariants = cva( 'inline-flex w-fit shrink-0 items-center justify-center gap-1 rounded-md border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-colors [&>svg]:size-3', { 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', outline: 'border-border text-foreground', }, }, defaultVariants: { variant: 'default', }, }, ) export type BadgeProps = React.ComponentPropsWithoutRef<'span'> & VariantProps export function Badge({ className, variant, ...props }: BadgeProps) { return ( ) }