{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "chat",
  "title": "Chat panel",
  "description": "A one-on-one messaging panel — contact header, message bubbles, and a composer input.",
  "registryDependencies": [
    "input",
    "button",
    "https://www.quilldesignsystem.com/r/icon.json"
  ],
  "files": [
    {
      "path": "registry/blocks/chat.tsx",
      "content": "import { Input } from '@/components/ui/input'\nimport { Button } from '@/components/ui/button'\nimport { Icon } from '@/components/ui/icon'\n\nconst messages = [\n  { from: 'them', text: 'Hey! Did the new tokens land?' },\n  { from: 'me', text: 'Yep — merged this morning. Dark mode flows automatically now.' },\n  { from: 'them', text: 'Amazing. The badges look so much cleaner.' },\n  { from: 'me', text: 'Right? Everything binds to the foundation.' },\n]\n\n/** A one-on-one messaging panel — contact header, message bubbles, and a composer input. */\nexport function Chat() {\n  return (\n    <div className=\"flex h-frame-sm w-card flex-col rounded-xl bg-card text-foreground ring-1 ring-foreground/10\">\n      <div className=\"flex items-center gap-3 border-b border-border px-4 py-3\">\n        <div className=\"flex size-9 items-center justify-center rounded-full bg-muted text-sm font-medium text-muted-foreground\">\n          GH\n        </div>\n        <div className=\"flex flex-col\">\n          <span className=\"text-sm font-medium\">Grace Hopper</span>\n          <span className=\"text-xs text-muted-foreground\">Online</span>\n        </div>\n      </div>\n      <div className=\"flex flex-1 flex-col gap-3 overflow-auto p-4\">\n        {messages.map((m, i) => (\n          <div key={i} className={`flex ${m.from === 'me' ? 'justify-end' : 'justify-start'}`}>\n            <div\n              className={`max-w-[80%] rounded-2xl px-3 py-2 text-sm text-pretty ${\n                m.from === 'me' ? 'bg-primary text-primary-foreground' : 'bg-muted text-foreground'\n              }`}\n            >\n              {m.text}\n            </div>\n          </div>\n        ))}\n      </div>\n      <div className=\"flex items-center gap-2 border-t border-border p-3\">\n        <Input placeholder=\"Message…\" className=\"flex-1\" aria-label=\"Message\" />\n        <Button size=\"icon\" aria-label=\"Send\">\n          <Icon name=\"arrow_forward\" />\n        </Button>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/quill/chat.tsx"
    }
  ],
  "meta": {
    "intent": [
      "messaging"
    ],
    "use_when": "You need a one-on-one messaging panel with a contact header, bubbles, and a composer.",
    "not_for": "you need a list of conversations alongside the open thread, not just the single open thread → list-detail; the messages are one-way system alerts, not a two-way conversation with someone → notifications"
  },
  "docs": "A one-on-one messaging panel — contact header, message bubbles, and a composer input. Do: Align the current user's messages to one side (right) and the other party's to the other (left) — position is the primary cue for who said what. Don't: Rely on color alone to distinguish sender — pair it with consistent alignment. Use list-detail when you need a list of conversations alongside the open thread, not just the single open thread. Use notifications when the messages are one-way system alerts, not a two-way conversation with someone.",
  "categories": [
    "messaging"
  ],
  "type": "registry:block"
}