{
  "name": "channel-topic",
  "type": "registry:ui",
  "framework": "react",
  "title": "Channel Topic Bar",
  "description": "A header bar showing the channel name and a truncating topic description.",
  "files": [
    {
      "path": "ui/channel-topic.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst ChannelTopic = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"flex min-w-0 items-center gap-2 border-b border-newt-border px-4 py-3 text-sm\",\n      className\n    )}\n    {...props}\n  />\n))\nChannelTopic.displayName = \"ChannelTopic\"\n\nconst ChannelTopicIcon = React.forwardRef<\n  HTMLSpanElement,\n  React.ComponentProps<\"span\">\n>(({ className, children = \"#\", ...props }, ref) => (\n  <span\n    ref={ref}\n    aria-hidden=\"true\"\n    className={cn(\"shrink-0 font-bold text-newt-text-muted\", className)}\n    {...props}\n  >\n    {children}\n  </span>\n))\nChannelTopicIcon.displayName = \"ChannelTopicIcon\"\n\nconst ChannelTopicName = React.forwardRef<\n  HTMLSpanElement,\n  React.ComponentProps<\"span\">\n>(({ className, ...props }, ref) => (\n  <span\n    ref={ref}\n    className={cn(\n      \"shrink-0 whitespace-nowrap font-bold text-newt-text-primary\",\n      className\n    )}\n    {...props}\n  />\n))\nChannelTopicName.displayName = \"ChannelTopicName\"\n\nconst ChannelTopicDivider = React.forwardRef<\n  HTMLSpanElement,\n  React.ComponentProps<\"span\">\n>(({ className, ...props }, ref) => (\n  <span\n    ref={ref}\n    aria-hidden=\"true\"\n    className={cn(\"h-[18px] w-px shrink-0 bg-newt-border\", className)}\n    {...props}\n  />\n))\nChannelTopicDivider.displayName = \"ChannelTopicDivider\"\n\nconst ChannelTopicDescription = React.forwardRef<\n  HTMLSpanElement,\n  React.ComponentProps<\"span\">\n>(({ className, ...props }, ref) => (\n  <span\n    ref={ref}\n    className={cn(\n      \"overflow-hidden text-ellipsis whitespace-nowrap text-[13px] text-newt-text-muted\",\n      className\n    )}\n    {...props}\n  />\n))\nChannelTopicDescription.displayName = \"ChannelTopicDescription\"\n\nexport {\n  ChannelTopic,\n  ChannelTopicIcon,\n  ChannelTopicName,\n  ChannelTopicDivider,\n  ChannelTopicDescription,\n}\n",
      "type": "registry:ui"
    }
  ]
}