{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "badge",
  "type": "registry:ui",
  "title": "Badge",
  "description": "Miniature embossed status chip with seam depth variants.",
  "dependencies": [
    "class-variance-authority"
  ],
  "registryDependencies": [
    "https://seamui.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "registry/seam/ui/badge.tsx",
      "content": "import type * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst badgeVariants = cva(\n  // a miniature key — embossed chips get shadow-resting, outline stays flat.\n  \"inline-flex w-fit shrink-0 items-center justify-center gap-1 whitespace-nowrap rounded-md squircle border px-2.5 py-0.5 text-xs font-medium select-none [&>svg]:pointer-events-none [&>svg]:size-3\",\n  {\n    variants: {\n      variant: {\n        default:\n          \"border-transparent bg-primary text-primary-foreground shadow-resting\",\n        secondary:\n          \"border-transparent bg-secondary text-secondary-foreground shadow-resting\",\n        destructive:\n          \"border-transparent bg-destructive text-white shadow-resting\",\n        outline: \"border-border/60 text-foreground\",\n        // debossed — a chip carved into the surface, for quiet/passive status.\n        muted: \"border-border/60 bg-muted text-muted-foreground shadow-well\",\n      },\n    },\n    defaultVariants: { variant: \"default\" },\n  }\n)\n\nfunction Badge({\n  className,\n  variant,\n  ...props\n}: React.ComponentProps<\"span\"> & VariantProps<typeof badgeVariants>) {\n  return (\n    <span\n      data-slot=\"badge\"\n      className={cn(badgeVariants({ variant, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Badge, badgeVariants }\n",
      "type": "registry:ui",
      "target": "components/ui/badge.tsx"
    }
  ]
}