{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "file-diff-demo",
  "title": "File Diff: Example",
  "description": "A small refactor.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.cuelark.com/r/file-diff.json"
  ],
  "files": [
    {
      "path": "src/registry/cuelark/examples/file-diff-demo.tsx",
      "content": "import { FileDiff } from \"@/registry/cuelark/ui/file-diff\";\n\nexport default function FileDiffDemo() {\n  return (\n    <FileDiff\n      className=\"w-full max-w-xl\"\n      filename=\"src/billing/tax.ts\"\n      lines={[\n        { type: \"context\", content: \"import { Invoice } from './types'\" },\n        { type: \"context\", content: \"\" },\n        { type: \"remove\", content: \"export const tax = (i: Invoice) => i.subtotal * i.rate\" },\n        { type: \"add\", content: \"export function tax(i: Invoice) {\" },\n        { type: \"add\", content: \"  if (!i.customer.taxId) return 0\" },\n        { type: \"add\", content: \"  return Math.round(i.subtotal * i.rate * 100) / 100\" },\n        { type: \"add\", content: \"}\" },\n        { type: \"context\", content: \"\" },\n        { type: \"context\", content: \"export function total(i: Invoice) {\" },\n        { type: \"context\", content: \"  return i.subtotal + tax(i)\" },\n        { type: \"context\", content: \"}\" },\n      ]}\n    />\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "file-diff",
    "example"
  ],
  "type": "registry:component"
}