{
  "format": "ui-contract-component-draft",
  "id": "shadcn:ButtonGroup",
  "version": "0.4.1",
  "status": "complete",
  "domains": {
    "interface": "interface.json",
    "visual": {
      "tokens": "../../tokens.json",
      "css": "layout.css"
    },
    "behavior": "behavior.scxml",
    "accessibility": {
      "html": "accessibility.html",
      "rules": "accessibility.rules.json"
    }
  },
  "anatomy": {
    "group": "Actual named role=group, not an automatic toolbar/selection controller.",
    "text": "Actual useRender text addon or explicit native override.",
    "separator": "Actual composed Separator with independent orientation.",
    "action": "Explicit caller native Button children, with their own focus/actions."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "composition": {
    "button": {
      "component": "../button/component.json"
    },
    "separator": {
      "component": "../separator/component.json"
    }
  },
  "convention": "semantic-component/1",
  "partBindings": {
    "group": {
      "kind": "element",
      "declaration": "ButtonGroup",
      "selector": "[data-slot=\"button-group\"]",
      "description": "Actual named role=group, not an automatic toolbar/selection controller.",
      "ownership": "actual wrapper"
    },
    "text": {
      "kind": "element",
      "declaration": "ButtonGroupText",
      "selector": "[data-slot=\"button-group-text\"]",
      "description": "Actual useRender text addon or explicit native override.",
      "ownership": "actual wrapper"
    },
    "separator": {
      "kind": "element",
      "declaration": "ButtonGroupSeparator",
      "selector": "[data-slot=\"button-group-separator\"]",
      "description": "Actual composed Separator with independent orientation.",
      "ownership": "actual wrapper"
    },
    "action": {
      "kind": "element",
      "declaration": "ButtonGroup",
      "selector": "[data-slot=\"button-group\"] > button",
      "description": "Explicit caller native Button children, with their own focus/actions.",
      "ownership": "caller composition"
    }
  },
  "visualContract": {
    "tokens": {
      "border-width": "semantic.border.width",
      "button-group-text-inset": "components.button-group.textInset",
      "button-group-text-radius": "components.button-group.textRadius",
      "color-border": "semantic.color.border",
      "color-foreground": "semantic.color.foreground",
      "color-muted": "semantic.color.muted",
      "font-fallback": "semantic.typography.fallbackFamily",
      "font-family": "semantic.typography.fontFamily",
      "font-size-body": "semantic.typography.bodySize",
      "line-height-body": "semantic.typography.bodyLineHeight"
    },
    "runtimeProperties": {},
    "layoutPolicy": "ButtonGroup maps all three actual exports and imports its real Button styling dependency. Native grouped-button outer corners come from the measured 10px default master; connected edges are logical rather than tied to specimen position labels. The source default horizontal CVA class exists even when data-orientation is omitted, so CSS follows actual orientation classes. Source Separator 1.9 uses data-orientation, not the data-horizontal/data-vertical utility names left in the pinned wrapper. Text addon chrome is an explicit reference with intrinsic height stretched to adjacent buttons and 10px inset; no fake Group size prop is added. Buttons retain their own sizes, states and keyboard/focus semantics. The group has no roving tabindex, toolbar role, group disabled state or selection API. Callers name the group and disable individual children; logical connected corners support explicit RTL.",
    "variants": {
      "orientation": {
        "prop": "orientation",
        "classes": [
          "cn-button-group-orientation-horizontal",
          "cn-button-group-orientation-vertical"
        ],
        "attributeMayBeOmittedForDefault": true
      }
    },
    "sourceTraceability": "figma/traceability.json"
  }
}
