{
  "componentId": "shadcn:ButtonGroup",
  "sourceRule": "ButtonGroup renders div role=group; orientation horizontal is the visual default, vertical stacks controls. ButtonGroupSeparator defaults vertical and composes Separator. ButtonGroupText uses useRender default div. Neither group orientation nor borders register toolbar roving focus, a radio choice or shared disabled/value state.",
  "keyboardAndFocus": "Each actual Button/link/input keeps its native keyboard, focus, disabled and callback contract. Tab visits enabled controls in DOM order. The reference supplies a group label identifying their relationship; group orientation changes layout without intercepting arrow keys.",
  "referenceComposition": "<div data-slot=\"button-group\" role=\"group\" aria-label=\"Report actions\" class=\"cn-button-group cn-button-group-orientation-horizontal\" data-orientation=\"horizontal\"><div data-slot=\"button-group-text\">Report</div><button type=\"button\" data-slot=\"button\" class=\"cn-button cn-button-variant-outline cn-button-size-default\">Save report</button><div data-slot=\"button-group-separator\" data-orientation=\"vertical\" role=\"separator\" aria-orientation=\"vertical\"></div><button type=\"button\" data-slot=\"button\" class=\"cn-button cn-button-variant-outline cn-button-size-default\">Export report</button></div>",
  "protocol": "SCXML consumes actual source/native transaction observations; callback objects remain original. Sends document observed callbacks, not second DOM dispatches. Parent-controlled props alone synchronize authoritative values. HTML/CSS is a semantic projection; executable behavior uses actual pinned React wrappers.",
  "semanticParts": {
    "group": {
      "kind": "element",
      "selector": "[data-slot=\"button-group\"]",
      "description": "Actual named role=group, not an automatic toolbar/selection controller."
    },
    "text": {
      "kind": "element",
      "selector": "[data-slot=\"button-group-text\"]",
      "description": "Actual useRender text addon or explicit native override."
    },
    "separator": {
      "kind": "element",
      "selector": "[data-slot=\"button-group-separator\"]",
      "description": "Actual composed Separator with independent orientation."
    },
    "action": {
      "kind": "element",
      "selector": "[data-slot=\"button-group\"] > button",
      "description": "Explicit caller native Button children, with their own focus/actions."
    }
  },
  "visualStateMapping": {
    "orientation": {
      "prop": "orientation",
      "classes": [
        "cn-button-group-orientation-horizontal",
        "cn-button-group-orientation-vertical"
      ],
      "attributeMayBeOmittedForDefault": true
    }
  }
}
