{
  "name": "MultiBindingList",
  "package": "@magicblocksai/ui",
  "file": "packages/ui/src/components/MultiBindingList.tsx",
  "chapterTag": "04 Forms & Inputs",
  "chapter": "05-forms-and-inputs.html",
  "sectionId": "multi-binding-list",
  "elName": "MultiBindingList",
  "demoUrl": "https://brand.magicblocks.ai/components/05-forms-and-inputs#multi-binding-list",
  "hasLiveDemo": false,
  "description": "Repeater of select + remove rows. Used for the Brain → MCP picker\n(`+ Add MCP`), Knowledge Base Collections multi-select (≤3), multi-recipient\nemail destinations, and any `+ Add another` single-binding pattern.",
  "useClient": true,
  "interactivity": "interactive",
  "namedExports": [
    {
      "name": "MultiBindingList",
      "isPrincipal": true,
      "isType": false
    },
    {
      "name": "MultiBindingListProps",
      "isPrincipal": false,
      "isType": true
    },
    {
      "name": "MultiBindingOption",
      "isPrincipal": false,
      "isType": false
    },
    {
      "name": "MultiBinding",
      "isPrincipal": false,
      "isType": false
    }
  ],
  "importStatement": "import { MultiBindingList } from \"@magicblocksai/ui\";",
  "props": [
    {
      "name": "options",
      "optional": false,
      "type": "MultiBindingOption[]",
      "doc": "Available options for every row."
    },
    {
      "name": "value",
      "optional": true,
      "type": "MultiBinding[]",
      "doc": "Controlled bindings."
    },
    {
      "name": "defaultValue",
      "optional": true,
      "type": "MultiBinding[]",
      "doc": "Uncontrolled initial bindings."
    },
    {
      "name": "onValueChange",
      "optional": true,
      "type": "(bindings: MultiBinding[]) => void",
      "doc": "Fires when the binding set changes."
    },
    {
      "name": "label",
      "optional": true,
      "type": "ReactNode",
      "doc": "Top-level label."
    },
    {
      "name": "placeholder",
      "optional": true,
      "type": "string",
      "doc": "Per-row placeholder. Default `\"Select…\"`."
    },
    {
      "name": "addLabel",
      "optional": true,
      "type": "ReactNode",
      "doc": "Add-row label. Default `\"+ Add another\"`."
    },
    {
      "name": "max",
      "optional": true,
      "type": "number",
      "doc": "Maximum allowed bindings (disables Add when reached)."
    },
    {
      "name": "disabled",
      "optional": true,
      "type": "boolean",
      "doc": "Disable interaction."
    }
  ],
  "classesUsed": [
    "multi-binding-list",
    "multi-binding-list-add",
    "multi-binding-list-label",
    "multi-binding-list-remove",
    "multi-binding-list-row",
    "multi-binding-list-rows",
    "multi-binding-list-select"
  ],
  "examples": {
    "react": null,
    "html": "<div class=\"multi-binding-list\">\n  <div class=\"multi-binding-list-label\">MCP servers</div>\n  <div class=\"multi-binding-list-rows\">\n    <div class=\"multi-binding-list-row\">\n      <select class=\"multi-binding-list-select\" aria-label=\"Server\">\n        <option value=\"\">Pick a connector…</option>\n        <option value=\"gcal\">Google Calendar (MCP)</option>\n        <option value=\"calcom\">Cal.com</option>\n        <option value=\"calendly\">Calendly</option>\n      </select>\n      <button type=\"button\" class=\"multi-binding-list-remove\" aria-label=\"Remove row\">×</button>\n    </div>\n  </div>\n  <button type=\"button\" class=\"multi-binding-list-add\">+ Add MCP server</button>\n</div>",
    "css": ".multi-binding-list { display: flex; flex-direction: column; gap: var(--s-2); }\n\n.multi-binding-list-add {\n  align-self: flex-start;\n  appearance: none;\n  background: transparent;\n  border: 1px dashed var(--hair);\n  border-radius: var(--r-sm);\n  padding: 6px 10px;\n  font: 500 12.5px/1 var(--f-body);\n  color: var(--accent);\n  cursor: pointer;\n}\n\n.multi-binding-list-label { font: 500 13px/1.3 var(--f-body); color: var(--fg); }\n\n.multi-binding-list-remove {\n  appearance: none;\n  background: transparent;\n  border: 0;\n  width: 28px; height: 28px;\n  display: inline-flex;\n  align-items: center;\n  justify-content: center;\n  color: var(--fg-faint);\n  cursor: pointer;\n  border-radius: var(--r-xs);\n}\n\n.multi-binding-list-row {\n  display: grid;\n  grid-template-columns: 1fr 28px;\n  gap: 6px;\n  align-items: center;\n}\n\n.multi-binding-list-rows { display: flex; flex-direction: column; gap: 6px; }\n\n.multi-binding-list-select {\n  height: 32px;\n  padding: 0 var(--s-3);\n  border: 1px solid var(--hair);\n  border-radius: var(--r-sm);\n  background: var(--bg-paper);\n  color: var(--fg);\n  font: 400 13px/1 var(--f-body);\n}"
  }
}
