{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "entity-chip",
  "type": "registry:ui",
  "title": "Entity chip",
  "description": "An inline reference to a supplier, person or record: a coloured monogram disc plus the name in a soft pill.",
  "categories": [
    "atoms"
  ],
  "registryDependencies": [
    "https://irisui.dev/r/foundation.json"
  ],
  "files": [
    {
      "path": "src/registry/components/entity-chip/entity-chip.tsx",
      "content": "/** Monogram mark — a colored disc with an initial or short glyph.\n *  The shared building block for entity chips and monogram headings. */\nexport function Monogram({\n  children,\n  color = \"var(--orange)\",\n  className = \"\",\n}: {\n  children: React.ReactNode;\n  color?: string;\n  className?: string;\n}) {\n  return (\n    <span\n      className={`flex size-4 shrink-0 items-center justify-center rounded-full\n        text-[9px] font-semibold leading-none text-white ${className}`}\n      style={{ background: color }}\n    >\n      {children}\n    </span>\n  );\n}\n\n/** Inline entity reference — a monogram + name in a soft field pill.\n *  Names a supplier, person, or record inside running text. Softer than a\n *  StatusPill (no dot, no state) and not a mono token (see Chip). */\nexport function EntityChip({\n  name,\n  color,\n  monogram,\n  className = \"\",\n}: {\n  name: string;\n  color?: string;\n  monogram?: React.ReactNode;\n  className?: string;\n}) {\n  return (\n    <span\n      className={`mx-0.5 inline-flex items-center gap-1 rounded-full bg-field\n        py-px pl-[3px] pr-1.5 align-middle shadow-hairline ${className}`}\n    >\n      <Monogram color={color}>{monogram ?? name.charAt(0)}</Monogram>\n      <span className=\"text-[12px] font-medium text-ink\">{name}</span>\n    </span>\n  );\n}\n",
      "type": "registry:component",
      "target": "@components/iris/entity-chip/entity-chip.tsx"
    }
  ],
  "docs": "Docs and live preview: https://irisui.dev/components/entity-chip",
  "meta": {
    "kind": "component",
    "group": "Data display",
    "export": "EntityChip",
    "docs": "https://irisui.dev/components/entity-chip"
  }
}
