{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "list-detail",
  "title": "List + detail",
  "description": "An inbox-style split view — a selectable message list beside a detail pane with archive and delete actions.",
  "registryDependencies": [
    "badge",
    "button",
    "separator",
    "https://www.quilldesignsystem.com/r/icon.json"
  ],
  "files": [
    {
      "path": "registry/blocks/list-detail.tsx",
      "content": "import { Icon } from '@/components/ui/icon'\nimport { Badge } from '@/components/ui/badge'\nimport { Button } from '@/components/ui/button'\nimport { Separator } from '@/components/ui/separator'\n\nconst threads = [\n  { from: 'Grace Hopper', subject: 'Re: Q3 roadmap', preview: 'Looks great — one note on timing…', time: '9:41', active: true },\n  { from: 'Alan Turing', subject: 'Deploy window', preview: 'Can we push to Thursday?', time: '8:02' },\n  { from: 'Katherine J.', subject: 'Design review', preview: 'Left comments on the flows.', time: 'Yesterday' },\n]\n\n/** An inbox-style split view — a selectable message list beside a detail pane with archive and delete actions. */\nexport function ListDetail() {\n  return (\n    <div className=\"flex h-frame w-full bg-background text-foreground\">\n      <div className=\"flex w-panel shrink-0 flex-col border-r border-border\">\n        <div className=\"flex items-center justify-between px-4 py-3\">\n          <span className=\"font-medium\">Inbox</span>\n          <Badge variant=\"secondary\">3</Badge>\n        </div>\n        <Separator />\n        <ul className=\"flex flex-col overflow-auto\">\n          {threads.map((t) => (\n            <li key={t.subject}>\n              <button\n                className={`flex w-full flex-col gap-0.5 border-b border-border px-4 py-3 text-left transition-colors hover:bg-accent outline-hidden focus-visible:ring-3 focus-visible:ring-inset focus-visible:ring-ring/50 ${\n                  t.active ? 'bg-accent' : ''\n                }`}\n              >\n                <div className=\"flex items-center justify-between\">\n                  <span className=\"text-sm font-medium\">{t.from}</span>\n                  <span className=\"text-xs text-muted-foreground\">{t.time}</span>\n                </div>\n                <span className=\"text-sm text-foreground\">{t.subject}</span>\n                <span className=\"truncate text-xs text-muted-foreground\">{t.preview}</span>\n              </button>\n            </li>\n          ))}\n        </ul>\n      </div>\n      <div className=\"flex min-w-0 flex-1 flex-col\">\n        <div className=\"flex items-center justify-between px-6 py-4\">\n          <div className=\"flex flex-col\">\n            <span className=\"text-lg font-medium\">Re: Q3 roadmap</span>\n            <span className=\"text-sm text-muted-foreground\">Grace Hopper · 9:41 AM</span>\n          </div>\n          <div className=\"flex gap-2\">\n            <Button variant=\"ghost\" size=\"icon\" aria-label=\"Archive\">\n              <Icon name=\"folder_open\" />\n            </Button>\n            <Button variant=\"ghost\" size=\"icon\" aria-label=\"Delete\">\n              <Icon name=\"delete\" />\n            </Button>\n          </div>\n        </div>\n        <Separator />\n        <div className=\"flex flex-col gap-4 overflow-auto p-6 text-sm leading-reading text-foreground\">\n          <p>Hi Ada,</p>\n          <p>\n            Looks great — one note on timing: can we align the beta with the marketing push in week 6?\n            That gives us room to bake in the feedback from the design review.\n          </p>\n          <p>Thanks, Grace</p>\n        </div>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/quill/list-detail.tsx"
    }
  ],
  "meta": {
    "intent": [
      "messaging",
      "app-shell"
    ],
    "use_when": "You need an inbox-style split view pairing a selectable list with a detail pane.",
    "not_for": "you need a fuller mail client — search, reply composer, forward — not just list-and-read → mail-shell; the conversation is a live back-and-forth thread, not discrete messages you select and read one at a time → chat"
  },
  "docs": "An inbox-style split view — a selectable message list beside a detail pane with archive and delete actions. Do: Keep the selected thread visually marked in the list (background fill) while its detail is open, so context isn't lost. Don't: Let the list's selection state go stale or unmarked once a thread is open in the detail pane. Use mail-shell when you need a fuller mail client — search, reply composer, forward — not just list-and-read. Use chat when the conversation is a live back-and-forth thread, not discrete messages you select and read one at a time.",
  "categories": [
    "messaging",
    "app-shell"
  ],
  "type": "registry:block"
}