{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "message-two-sided-chat",
  "title": "Two-sided conversation",
  "description": "Incoming and outgoing rows separated by nothing but the align prop.",
  "registryDependencies": [
    "bubble",
    "message"
  ],
  "files": [
    {
      "path": "registry/patterns/message-two-sided-chat/message-two-sided-chat.tsx",
      "content": "/**\n * Two-sided conversation - adapted for tealmac UI from the ReUI example \"c-message-1\"\n * (https://github.com/keenthemes/reui), MIT License, Copyright (c) 2025\n * Keenthemes Inc. The full licence text is in THIRD_PARTY_NOTICES.md.\n * Changes: tealmac UI import paths and theme tokens, lucide icons, logical\n * (RTL-safe) spacing and alignment, reduced-motion support and sample\n * content.\n */\nimport { Bubble, BubbleContent } from \"@/components/ui/bubble\"\nimport { Message, MessageContent } from \"@/components/ui/message\"\n\n/*\n * align=\"end\" is the whole mechanism for an outgoing turn: Message writes it\n * out as data-align and reverses its own flex row, so no ms-auto is needed.\n */\nexport function MessageTwoSidedChat() {\n  return (\n    <div className=\"mx-auto flex w-full max-w-sm flex-col gap-6\">\n      <Message>\n        <MessageContent>\n          <Bubble variant=\"muted\">\n            <BubbleContent>\n              Staging is green on 4.2. Want me to promote it?\n            </BubbleContent>\n          </Bubble>\n        </MessageContent>\n      </Message>\n\n      {/*\n        Side alone is the first cue lost when a thread is read aloud or\n        collapsed into one column, so the bubble variant carries it too.\n      */}\n      <Message align=\"end\">\n        <MessageContent>\n          <Bubble>\n            <BubbleContent>\n              Hold it. The billing migration has to go out in the same release.\n            </BubbleContent>\n          </Bubble>\n        </MessageContent>\n      </Message>\n\n      <Message>\n        <MessageContent>\n          <Bubble variant=\"muted\">\n            <BubbleContent>\n              Understood. The migration lands after the 2pm review.\n            </BubbleContent>\n          </Bubble>\n        </MessageContent>\n      </Message>\n\n      <Message align=\"end\">\n        <MessageContent>\n          <Bubble>\n            <BubbleContent>\n              Then I will cut the tag straight after.\n            </BubbleContent>\n          </Bubble>\n        </MessageContent>\n      </Message>\n    </div>\n  )\n}\n",
      "type": "registry:block"
    }
  ],
  "type": "registry:block"
}