{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "notification-preferences",
  "type": "registry:ui",
  "title": "Notification preferences",
  "description": "A notification settings list of labeled switches for email digests, product updates and security alerts. A simple React start for preference pages.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.minidev.pro/r/label.json",
    "https://ui.minidev.pro/r/switch.json",
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/notification-preferences.tsx",
      "type": "registry:ui",
      "target": "components/ui/notification-preferences.tsx",
      "content": "\"use client\"\nimport { Switch } from \"@/components/ui/switch\"\nimport { Label } from \"@/components/ui/label\"\nimport { cn } from \"@/lib/utils\"\nfunction NotificationPreferences({ className }: { className?: string }) {\n  return (\n    <div data-slot=\"notification-preferences\" className={cn(\"space-y-3\", className)}>\n      {[\n        [\"email\", \"Email digests\"],\n        [\"product\", \"Product updates\"],\n        [\"security\", \"Security alerts\"],\n      ].map(([id, label]) => (\n        <div key={id} className=\"flex items-center justify-between gap-3\">\n          <Label htmlFor={id}>{label}</Label>\n          <Switch id={id} defaultChecked={id !== \"product\"} />\n        </div>\n      ))}\n    </div>\n  )\n}\nexport { NotificationPreferences }\n"
    }
  ]
}
