{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "badge",
  "type": "registry:ui",
  "title": "Badge",
  "description": "Pill badges and Scalloped Starburst callout tags.",
  "dependencies": [
    "class-variance-authority",
    "clsx",
    "tailwind-merge"
  ],
  "devDependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "components/ui/badge.tsx",
      "content": "import * as React from 'react'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport { motion, type HTMLMotionProps } from 'motion/react'\nimport { cn } from '@/lib/utils'\n\nconst badgeVariants = cva(\n  'inline-flex items-center justify-center font-mono font-bold text-xs tracking-wider uppercase transition-colors focus:outline-none rk-border-sm select-none',\n  {\n    variants: {\n      variant: {\n        yellow: 'bg-rk-primary text-rk-ink',\n        orange: 'bg-rk-secondary text-rk-ink',\n        violet: 'bg-rk-accent text-rk-ink',\n        mint: 'bg-rk-mint text-rk-ink',\n        peach: 'bg-rk-peach text-rk-ink',\n        sky: 'bg-rk-sky text-rk-ink',\n        pink: 'bg-rk-pink text-rk-ink',\n        lavender: 'bg-rk-lavender text-rk-ink',\n        black: 'bg-rk-ink text-rk-canvas',\n        white: 'bg-rk-surface text-rk-ink',\n      },\n      shape: {\n        pill: 'rounded-full px-3 py-1',\n        square: 'rounded-lg px-2.5 py-1',\n      },\n    },\n    defaultVariants: {\n      variant: 'yellow',\n      shape: 'pill',\n    },\n  }\n)\n\nexport interface BadgeProps\n  extends Omit<React.HTMLAttributes<HTMLDivElement>, keyof HTMLMotionProps<'div'>>,\n    HTMLMotionProps<'div'>,\n    VariantProps<typeof badgeVariants> {}\n\nfunction Badge({ className, variant, shape, ...props }: BadgeProps) {\n  return (\n    <motion.div\n      whileHover={{ scale: 1.05 }}\n      transition={{ type: 'spring', stiffness: 500, damping: 20 }}\n      className={cn(badgeVariants({ variant, shape }), className)}\n      {...props}\n    />\n  )\n}\n\nexport { Badge, badgeVariants }\n",
      "type": "registry:ui",
      "target": "components/ui/badge.tsx"
    }
  ]
}