{
  "name": "voice-channel",
  "type": "registry:ui",
  "framework": "react",
  "title": "Voice Channel Row",
  "description": "A sidebar voice channel row with a collapsible header and the list of connected members.",
  "registryDependencies": [
    "@newtui/avatar"
  ],
  "files": [
    {
      "path": "ui/voice-channel.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst VoiceChannel = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"flex flex-col gap-1 rounded-[var(--newt-radius-sm)] px-2 py-1.5\",\n      className\n    )}\n    {...props}\n  />\n))\nVoiceChannel.displayName = \"VoiceChannel\"\n\nconst VoiceChannelHeader = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"flex cursor-pointer items-center gap-1.5 text-[15px] font-medium text-newt-text-muted transition-colors duration-fast ease-newt hover:text-newt-text-secondary\",\n      className\n    )}\n    {...props}\n  />\n))\nVoiceChannelHeader.displayName = \"VoiceChannelHeader\"\n\nconst VoiceChannelIcon = React.forwardRef<\n  HTMLSpanElement,\n  React.ComponentProps<\"span\">\n>(({ className, ...props }, ref) => (\n  <span\n    ref={ref}\n    aria-hidden=\"true\"\n    className={cn(\"shrink-0 opacity-80\", className)}\n    {...props}\n  />\n))\nVoiceChannelIcon.displayName = \"VoiceChannelIcon\"\n\nconst VoiceChannelMembers = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\"flex flex-col gap-0.5 ps-6\", className)}\n    {...props}\n  />\n))\nVoiceChannelMembers.displayName = \"VoiceChannelMembers\"\n\nconst VoiceChannelMember = React.forwardRef<\n  HTMLDivElement,\n  React.ComponentProps<\"div\">\n>(({ className, ...props }, ref) => (\n  <div\n    ref={ref}\n    className={cn(\n      \"flex cursor-pointer items-center gap-2 rounded-[var(--newt-radius-sm)] px-1.5 py-[3px] text-sm text-newt-text-secondary transition-colors duration-fast ease-newt hover:bg-newt-bg-hover\",\n      className\n    )}\n    {...props}\n  />\n))\nVoiceChannelMember.displayName = \"VoiceChannelMember\"\n\nexport interface VoiceChannelMemberIconsProps extends React.ComponentProps<\"div\"> {\n  /** Renders the icons in the dnd color to signal a muted / deafened member. */\n  muted?: boolean\n}\n\nconst VoiceChannelMemberIcons = React.forwardRef<\n  HTMLDivElement,\n  VoiceChannelMemberIconsProps\n>(({ className, muted = false, ...props }, ref) => (\n  <div\n    ref={ref}\n    data-muted={muted ? \"\" : undefined}\n    className={cn(\n      \"ms-auto flex items-center gap-1 text-xs text-newt-text-muted\",\n      muted && \"text-newt-dnd\",\n      className\n    )}\n    {...props}\n  />\n))\nVoiceChannelMemberIcons.displayName = \"VoiceChannelMemberIcons\"\n\nexport {\n  VoiceChannel,\n  VoiceChannelHeader,\n  VoiceChannelIcon,\n  VoiceChannelMembers,\n  VoiceChannelMember,\n  VoiceChannelMemberIcons,\n}\n",
      "type": "registry:ui"
    }
  ]
}