{
  "name": "role-tag",
  "type": "registry:ui",
  "framework": "react",
  "title": "Role Tag",
  "description": "A compact bordered tag with a coloured dot for displaying a member's role.",
  "files": [
    {
      "path": "ui/role-tag.tsx",
      "content": "import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nexport interface RoleTagProps extends React.ComponentProps<\"span\"> {\n  /** Role colour applied to the tag; the dot inherits it via `currentColor`. */\n  color?: string\n}\n\nconst RoleTag = React.forwardRef<HTMLSpanElement, RoleTagProps>(\n  ({ className, color, style, ...props }, ref) => (\n    <span\n      ref={ref}\n      className={cn(\n        \"inline-flex items-center gap-1 rounded-[var(--newt-radius-sm)] border border-newt-border bg-newt-bg-elevated px-1.5 py-0.5 text-[11px] font-semibold\",\n        className\n      )}\n      style={color ? { color, ...style } : style}\n      {...props}\n    />\n  )\n)\nRoleTag.displayName = \"RoleTag\"\n\nconst RoleTagDot = 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-2 w-2 rounded-full bg-current\", className)}\n    {...props}\n  />\n))\nRoleTagDot.displayName = \"RoleTagDot\"\n\nexport { RoleTag, RoleTagDot }\n",
      "type": "registry:ui"
    }
  ]
}