{
  "name": "message-list",
  "type": "registry:ui",
  "framework": "react",
  "title": "Message List",
  "description": "The polite live region that logs grouped messages in a channel.",
  "registryDependencies": [
    "@newtui/message-group"
  ],
  "files": [
    {
      "path": "ui/message-list.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\n/*\n * The log of grouped messages in a channel. `role=\"log\"` with a polite live\n * region is what makes an arriving message announce itself without stealing\n * focus from whatever the reader is doing.\n */\nexport interface MessageListProps extends React.HTMLAttributes<HTMLDivElement> {\n  /** Accessible name, e.g. `Messages in #general`. */\n  label?: string\n}\n\nconst MessageList = React.forwardRef<HTMLDivElement, MessageListProps>(\n  ({ className, label, ...props }, ref) => (\n    <div\n      ref={ref}\n      role=\"log\"\n      aria-live=\"polite\"\n      aria-relevant=\"additions text\"\n      aria-label={label}\n      className={cn(\n        \"flex min-w-0 flex-col px-2 pb-4 pt-1 sm:px-4\",\n        /*\n         * Rows sit flush: the list owns the padding, not the row. A descendant\n         * selector, so a row inside a wrapper keeps its padding.\n         */\n        \"[&_[data-slot=message-row]]:rounded-[var(--newt-radius-sm)] [&_[data-slot=message-row]]:px-2 [&_[data-slot=message-row]]:py-1.5\",\n        className\n      )}\n      {...props}\n    />\n  )\n)\nMessageList.displayName = \"MessageList\"\n\nexport { MessageList }\n",
      "type": "registry:ui"
    }
  ]
}