{
  "format": "ui-contract-component-draft",
  "id": "shadcn:Carousel",
  "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": {
    "root": "Named source region; orientation data attribute is an explicit caller visual binding.",
    "viewport": "Actual overflow viewport receives carouselRef; className belongs inner track.",
    "track": "Actual private Embla flex track; primitive inline transform remains authoritative.",
    "item": "Actual slide group/roledescription; caller provides position/content labels.",
    "slide": "Chosen content Card-like surface, intrinsic text and min extent.",
    "previous": "Actual Button delegation, disabled at nonlooping previous boundary.",
    "next": "Actual Button delegation, disabled at nonlooping next boundary.",
    "status": "External caller status from actual setApi select/reInit subscription."
  },
  "stories": "stories.json",
  "ux": "ux.json",
  "composition": {
    "button": {
      "component": "../button/component.json"
    }
  },
  "convention": "semantic-component/1",
  "partBindings": {
    "root": {
      "kind": "element",
      "declaration": "Carousel",
      "selector": "[data-slot=\"carousel\"]",
      "description": "Named source region; orientation data attribute is an explicit caller visual binding.",
      "ownership": "actual source wrapper"
    },
    "viewport": {
      "kind": "element",
      "declaration": "CarouselContent",
      "selector": "[data-slot=\"carousel-content\"]",
      "description": "Actual overflow viewport receives carouselRef; className belongs inner track.",
      "ownership": "actual source wrapper"
    },
    "track": {
      "kind": "element",
      "declaration": "CarouselContent",
      "selector": "[data-slot=\"carousel-content\"]>div",
      "description": "Actual private Embla flex track; primitive inline transform remains authoritative.",
      "ownership": "actual source wrapper"
    },
    "item": {
      "kind": "element",
      "declaration": "CarouselItem",
      "selector": "[data-slot=\"carousel-item\"]",
      "description": "Actual slide group/roledescription; caller provides position/content labels.",
      "ownership": "actual source wrapper"
    },
    "slide": {
      "kind": "element",
      "declaration": "CarouselItem",
      "selector": "[data-part=\"carousel-slide\"]",
      "description": "Chosen content Card-like surface, intrinsic text and min extent.",
      "ownership": "caller children"
    },
    "previous": {
      "kind": "element",
      "declaration": "CarouselPrevious",
      "selector": "[data-slot=\"carousel-previous\"]",
      "description": "Actual Button delegation, disabled at nonlooping previous boundary.",
      "ownership": "actual source wrapper"
    },
    "next": {
      "kind": "element",
      "declaration": "CarouselNext",
      "selector": "[data-slot=\"carousel-next\"]",
      "description": "Actual Button delegation, disabled at nonlooping next boundary.",
      "ownership": "actual source wrapper"
    },
    "status": {
      "kind": "element",
      "declaration": "Carousel",
      "selector": "[data-part=\"carousel-status\"]",
      "description": "External caller status from actual setApi select/reInit subscription.",
      "ownership": "caller composition"
    }
  },
  "visualContract": {
    "tokens": {
      "border-width": "semantic.border.width",
      "carousel-control-inset": "components.carousel.controlInset",
      "carousel-control-size": "components.carousel.controlSize",
      "carousel-gap": "components.carousel.gap",
      "carousel-radius": "components.carousel.radius",
      "carousel-slide-height": "components.carousel.slideHeight",
      "carousel-vertical-height": "components.carousel.verticalHeight",
      "color-background": "semantic.color.background",
      "color-border": "semantic.color.border",
      "color-foreground": "semantic.color.foreground",
      "color-muted-foreground": "semantic.color.mutedForeground",
      "control-label-gap": "semantic.layout.controlLabelGap",
      "font-fallback": "semantic.typography.fallbackFamily",
      "font-family": "semantic.typography.fontFamily",
      "font-size-body": "semantic.typography.bodySize",
      "line-height-body": "semantic.typography.bodyLineHeight"
    },
    "runtimeProperties": {},
    "layoutPolicy": "Actual source viewport/inner-track/slide identity remains distinct; Embla owns track transform and snap positions. Source 16px slide gutters map to native selected horizontal specimen 165px height and 28px full-round controls. Reference chooses one complete slide per snap; native multi-card samples remain evidence, not forced runtime widths. Controls are placed in reserved 40px internal lanes so320px views retain both navigation controls; this explicitly differs from source external 48px offsets. Vertical reference uses 240px constrained viewport and top/bottom control lanes; orientation is forwarded to Embla axis, while caller data-orientation binds visual CSS because wrapper emits no orientation attribute. Actual source capture still intercepts Left/Right in both orientations, not Up/Down, and does not exclude editable descendants; chosen slides contain no editable controls. RTL passes Embla opts.direction and HTML dir; Left still invokes scrollPrev and Right scrollNext per pinned wrapper, rather than invented physical-key reversal. Button source default outline/icon-sm is retained with native 28px circle override. External status is caller setApi select/reInit state, not an upstream onIndexChange API. No autoplay, fake slide tabindex, automatic focus movement or undocumented pause behavior.",
    "variants": {
      "orientation": {
        "prop": "orientation",
        "callerAttribute": "data-orientation",
        "values": [
          "horizontal",
          "vertical"
        ]
      },
      "direction": {
        "props": [
          "dir",
          "opts.direction"
        ],
        "values": [
          "ltr",
          "rtl"
        ]
      },
      "boundary": {
        "source": "Embla canScrollPrev/canScrollNext",
        "nativeAttribute": "disabled"
      }
    },
    "sourceTraceability": "figma/traceability.json"
  }
}
