{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "settings-grouped-list",
  "title": "Settings Grouped List",
  "description": "An inset-grouped settings screen with account, switch and navigation rows, a destructive sign-out row and footer help text. Use this when you build a settings or account screen on a phone with a mix of toggles, values and links.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "switch",
    "@tealmac/list-row"
  ],
  "files": [
    {
      "path": "registry/patterns/settings-grouped-list/settings-grouped-list.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { BellIcon, ShieldIcon, UserIcon } from \"lucide-react\"\n\nimport { ListGroup, ListRow } from \"@/components/ui/list-row\"\nimport { Switch } from \"@/components/ui/switch\"\n\nexport interface SettingsGroupedListProps {\n  user: { name: string; email: string }\n  notifications: boolean\n  onNotificationsChange: (on: boolean) => void\n  onSignOut: () => void\n}\n\nexport function SettingsGroupedList({\n  user,\n  notifications,\n  onNotificationsChange,\n  onSignOut,\n}: SettingsGroupedListProps) {\n  return (\n    <div className=\"bg-muted/40 flex flex-col gap-6 rounded-xl py-4\">\n      <ListGroup inset header=\"Account\">\n        <ListRow\n          leading={<UserIcon />}\n          title={user.name}\n          subtitle={user.email}\n          href=\"#profile\"\n        />\n        <ListRow\n          leading={<ShieldIcon />}\n          title=\"Security\"\n          trailing=\"2-step on\"\n          href=\"#security\"\n        />\n      </ListGroup>\n      <ListGroup\n        inset\n        header=\"Preferences\"\n        footer=\"Notifications are sent to the email above.\"\n      >\n        <ListRow\n          leading={<BellIcon />}\n          title=\"Notifications\"\n          trailing={\n            <Switch\n              aria-label=\"Notifications\"\n              checked={notifications}\n              onCheckedChange={onNotificationsChange}\n            />\n          }\n        />\n      </ListGroup>\n      <ListGroup inset>\n        <ListRow\n          title=\"Sign out\"\n          destructive\n          onClick={onSignOut}\n          chevron={false}\n        />\n      </ListGroup>\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}