{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "conversation-demo",
  "title": "Conversation: Example",
  "description": "Scroll up mid-conversation to see the Latest pill.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.cuelark.com/r/conversation.json",
    "https://ui.cuelark.com/r/message.json"
  ],
  "files": [
    {
      "path": "src/registry/cuelark/examples/conversation-demo.tsx",
      "content": "import { Conversation, ConversationContent } from \"@/registry/cuelark/ui/conversation\";\nimport { Message, MessageContent } from \"@/registry/cuelark/ui/message\";\n\nconst turns = [\n  [\"user\", \"What's the fastest way to add dark mode?\"],\n  [\"assistant\", \"Put your colors in CSS variables, define a .dark block, and toggle the class on <html>. Cuelark's theme already does this.\"],\n  [\"user\", \"And to avoid a flash on load?\"],\n  [\"assistant\", \"Run a tiny inline script in <head> that reads the saved preference and sets the class before the first paint.\"],\n  [\"user\", \"Can the user override the system setting?\"],\n  [\"assistant\", \"Yes: store their choice in localStorage and only fall back to prefers-color-scheme when nothing is saved.\"],\n] as const;\n\nexport default function ConversationDemo() {\n  return (\n    <Conversation className=\"h-80 w-full max-w-lg rounded-2xl border border-border bg-background\">\n      <ConversationContent>\n        {turns.map(([from, text], i) => (\n          <Message key={i} from={from}>\n            <MessageContent>{text}</MessageContent>\n          </Message>\n        ))}\n      </ConversationContent>\n    </Conversation>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "categories": [
    "conversation",
    "example"
  ],
  "type": "registry:component"
}