{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "inline-code-diff",
  "type": "registry:ui",
  "title": "Inline code diff",
  "description": "A two line code diff showing the removed line in red with a minus and the added line in green with a plus, in monospace. Suits AI edit suggestions.",
  "dependencies": [],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/inline-code-diff.tsx",
      "type": "registry:ui",
      "target": "components/ui/inline-code-diff.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nfunction InlineCodeDiff({\n  before,\n  after,\n  className,\n}: {\n  before: string\n  after: string\n  className?: string\n}) {\n  return (\n    <div data-slot=\"inline-code-diff\" className={cn(\"overflow-hidden rounded-xl border border-border font-mono text-[12px]\", className)}>\n      <pre className=\"border-b border-border bg-danger/5 px-3 py-2 text-danger\"><span className=\"select-none text-fg-muted\">- </span>{before}</pre>\n      <pre className=\"bg-success/5 px-3 py-2 text-success\"><span className=\"select-none text-fg-muted\">+ </span>{after}</pre>\n    </div>\n  )\n}\nexport { InlineCodeDiff }\n"
    }
  ]
}
