{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "notifications",
  "title": "Notifications",
  "description": "A notifications card listing recent events with icons, timestamps, unread indicators, and a mark-all-read action.",
  "registryDependencies": [
    "card",
    "button",
    "separator",
    "https://www.quilldesignsystem.com/r/icon.json"
  ],
  "files": [
    {
      "path": "registry/blocks/notifications.tsx",
      "content": "import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card'\nimport { Icon, type IconName } from '@/components/ui/icon'\nimport { Button } from '@/components/ui/button'\nimport { Separator } from '@/components/ui/separator'\n\nconst items: { icon: IconName; title: string; body: string; time: string; unread?: boolean }[] = [\n  { icon: 'group', title: 'New member joined', body: 'Grace Hopper accepted your invite.', time: '2m', unread: true },\n  { icon: 'check_circle', title: 'Deploy succeeded', body: 'acme-site is live in production.', time: '1h', unread: true },\n  { icon: 'content_copy', title: 'Backup complete', body: 'Weekly backup finished successfully.', time: '4h' },\n]\n\n/** A notifications card listing recent events with icons, timestamps, unread indicators, and a mark-all-read action. */\nexport function Notifications() {\n  return (\n    <Card className=\"w-card\">\n      <CardHeader className=\"flex flex-row items-center justify-between\">\n        <CardTitle>Notifications</CardTitle>\n        <Button variant=\"link\" size=\"sm\">\n          Mark all read\n        </Button>\n      </CardHeader>\n      <CardContent className=\"flex flex-col gap-0 p-0\">\n        {items.map((it, i) => (\n          <div key={it.title}>\n            {i > 0 && <Separator />}\n            <div className=\"flex items-start gap-3 px-6 py-3\">\n              <div className=\"flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-muted-foreground\">\n                <Icon name={it.icon} className=\"size-icon-lg\" />\n              </div>\n              <div className=\"flex flex-1 flex-col\">\n                <span className=\"text-sm font-medium text-foreground\">{it.title}</span>\n                <span className=\"text-sm text-muted-foreground\">{it.body}</span>\n              </div>\n              <div className=\"flex items-center gap-2\">\n                <span className=\"text-xs text-muted-foreground\">{it.time}</span>\n                {/* A read row keeps the dot's space, so every time sits in one column. */}\n                {it.unread ? <span className=\"size-2 rounded-full bg-primary\" role=\"img\" aria-label=\"Unread\" /> : <span aria-hidden className=\"size-2\" />}\n              </div>\n            </div>\n          </div>\n        ))}\n      </CardContent>\n    </Card>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/quill/notifications.tsx"
    }
  ],
  "meta": {
    "intent": [
      "feedback",
      "data-display"
    ],
    "use_when": "You need a notifications center with unread indicators and a mark-all-read action.",
    "not_for": "the list is a read-only history with no read/unread state or mark-all action → activity-feed; the message is transient feedback about something that just happened — use a toast, not a persistent notifications list → sonner"
  },
  "docs": "A notifications card listing recent events with icons, timestamps, unread indicators, and a mark-all-read action. Do: Pair the unread dot with a real accessible label (role=\"img\" aria-label=\"Unread\"), as this block already does. Don't: Ship an unread indicator that's purely decorative with no accessible signal. Do: Give each notification an icon that matches its content (a person icon for membership events, a check for successful deploys) so the list can be scanned by icon alone. Don't: Reuse one generic bell icon for every notification regardless of type, forcing people to read each title just to tell them apart. Use activity-feed when the list is a read-only history with no read/unread state or mark-all action. Use sonner when the message is transient feedback about something that just happened — use a toast, not a persistent notifications list.",
  "categories": [
    "feedback",
    "data-display"
  ],
  "type": "registry:block"
}